]> git.sesse.net Git - vlc/commitdiff
wxwindows/wizard.cpp: run Layout() on the sizers when changing output method
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 29 Jan 2005 13:28:14 +0000 (13:28 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 29 Jan 2005 13:28:14 +0000 (13:28 +0000)
in the streaming method page of the wizard, in order to properly show all
text. Hardcode the top spacing in order to prevent controls from moving
around on Layout(). reported by markfm

modules/gui/wxwindows/wizard.cpp

index 5c7eb9befbfa5df2b4cf062e5e4ae1b3cd0c1e12..e8c48cfed5a9855839b2828d0070ba4bed724a71 100644 (file)
@@ -999,7 +999,7 @@ wizStreamingMethodPage::wizStreamingMethodPage( wxWizard *parent,
     /* Create the texts */
     pageHeader( this, mainSizer,  STREAMING1_TITLE, STREAMING1_TEXT );
 
-    mainSizer->Add( 0,0,1 );
+    mainSizer->Add( 0,50,0 );
 
     i_method = 0;
 
@@ -1102,6 +1102,8 @@ void wizStreamingMethodPage::OnMethodChange(wxEvent& event)
     i_method = event.GetId() - MethodRadio0_Event;
     address_text->SetLabel( wxU(
      vlc_wraptext( _(methods_array[i_method].psz_address), TEXTWIDTH, false)));
+    address_sizer->Layout();
+    mainSizer->Layout();
 }
 
 /***************************************************