Fix dir picker layout with long names.
authorCarl Hetherington <cth@carlh.net>
Fri, 11 Dec 2015 02:15:32 +0000 (02:15 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 11 Dec 2015 02:15:32 +0000 (02:15 +0000)
src/wx/dir_picker_ctrl.cc

index fe4937edf5cc8002f24dfff543b188167723b516..0805c0bdf944ddf854cf186e2fbd1a08a31c11f7 100644 (file)
@@ -55,6 +55,9 @@ DirPickerCtrl::SetPath (wxString p)
 
        wxCommandEvent ev (wxEVT_COMMAND_DIRPICKER_CHANGED, wxID_ANY);
        GetEventHandler()->ProcessEvent (ev);
+
+       _sizer->Layout ();
+       _sizer->SetSizeHints (this);
 }
 
 wxString