Add support for wxTE_NO_VSCROLL style to wxTextCtrl (wxOSX)

This commit is contained in:
Artur Wieczorek
2017-08-02 21:26:51 +02:00
parent 794e1b275b
commit 1731ad5e31
3 changed files with 4 additions and 2 deletions

View File

@@ -716,6 +716,7 @@ wxNSTextViewControl::wxNSTextViewControl( wxTextCtrl *wxPeer, WXWidget w, long s
[m_scrollView setHasVerticalScroller:YES];
[m_scrollView setHasHorizontalScroller:hasHScroll];
[m_scrollView setHasVerticalScroller:(style & wxTE_NO_VSCROLL)? NO: YES];
NSSize contentSize = [m_scrollView contentSize];
NSRect viewFrame = NSMakeRect(
0, 0,