]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/iphone/stattext.mm
avoid setting initial position if it was not specified, broken in r70734
[wxWidgets.git] / src / osx / iphone / stattext.mm
index b98f9327d4574807805054aa30d9ef813ad1deb2..b0994d07339c5809ece30526fd3d90dfcae7539a 100644 (file)
@@ -1,10 +1,9 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        src/osx/cocoa/stattext.mm
+// Name:        src/osx/iphone/stattext.mm
 // Purpose:     wxStaticText
 // Author:      Stefan Csomor
 // Modified by:
 // Created:     04/01/98
-// RCS-ID:      $Id: stattext.cpp 54845 2008-07-30 14:52:41Z SC $
 // Copyright:   (c) Stefan Csomor
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -79,7 +78,8 @@ wxWidgetImplType* wxWidgetImpl::CreateStaticText( wxWindowMac* wxpeer,
 {
     CGRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
     wxUILabel* v = [[wxUILabel alloc] initWithFrame:r];
-    
+    v.backgroundColor = [UIColor clearColor];
+
     UILineBreakMode linebreak = UILineBreakModeWordWrap;
     if ( ((wxStaticText*)wxpeer)->IsEllipsized() )
     {