]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/textdlgg.cpp
VTK wrapper of vtkRenderWindow for wxPython. Tested on MSW so far.
[wxWidgets.git] / src / generic / textdlgg.cpp
index b828f7529482d1dee7ceb0ff0d6e79afa38d549d..40ca7ba6a348d304586ddd54f4ede83296d668d4 100644 (file)
@@ -100,10 +100,11 @@ wxTextEntryDialog::wxTextEntryDialog(wxWindow *parent,
     // 4) buttons
     topsizer->Add( CreateButtonSizer( style ), 0, wxCENTRE | wxALL, 10 );
     
+    SetAutoLayout( TRUE );
+    SetSizer( topsizer );
+    
     topsizer->SetSizeHints( this );
     topsizer->Fit( this );
-    SetSizer( topsizer );
-    SetAutoLayout( TRUE );
 
     Centre( wxBOTH );