wxwindows/wizard.cpp: run Layout() on the sizers when changing output method

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
parent 3bc34fcd
......@@ -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();
}
/***************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment