]> git.saurik.com Git - wxWidgets.git/commitdiff
fixes horizontal scrolling in textfields, fixes #12322
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 17 Aug 2010 06:21:53 +0000 (06:21 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 17 Aug 2010 06:21:53 +0000 (06:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/textctrl.mm

index 5ca171972d0980ae41229dfcc59cbfdd26f35d62..32464f3636336cfee51d3fc6e4cc7e9c5b633697 100644 (file)
@@ -708,6 +708,12 @@ wxWidgetImplType* wxWidgetImpl::CreateTextControl( wxTextCtrl* wxpeer,
             // FIXME: How can we remove the native control's border?
             // setBordered is separate from the text ctrl's border.
         }
+        
+        NSTextFieldCell* cell = [v cell];
+        [cell setScrollable:YES];
+        // TODO: Remove if we definitely are sure, it's not needed
+        // as setting scrolling to yes, should turn off any wrapping
+        // [cell setLineBreakMode:NSLineBreakByClipping]; 
 
         [v setBezeled:NO];
         [v setBordered:NO];