]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/scroll/scroll.cpp
compilation fix for wxUSE_LOG==0
[wxWidgets.git] / samples / scroll / scroll.cpp
index 9c144575661b15d0de88a0b7cd3838c0755dc958..1275d544f5586cce5060f776a1456669e6c8507f 100644 (file)
@@ -535,16 +535,11 @@ MyAutoScrollWindow::MyAutoScrollWindow( wxWindow *parent )
                              wxDefaultPosition,
                              SMALL_BUTTON );
 
-    // We need to do this here, because wxADJUST_MINSIZE below
-    // will cause the initial size to be ignored for Best/Min size.
-    // It would be nice to fix the sizers to handle this a little
-    // more cleanly.
-
     m_button->SetSizeHints( SMALL_BUTTON.GetWidth(), SMALL_BUTTON.GetHeight() );
 
     innersizer->Add( m_button,
                      0,
-                     wxALIGN_CENTER | wxALL | wxADJUST_MINSIZE,
+                     wxALIGN_CENTER | wxALL,
                      20 );
 
     innersizer->Add( new wxStaticText( this, wxID_ANY, _T("This is just") ),