Try to fix issues on Ubuntu/Unity for dialogs which are not displayed: adding GetSizer()->Fit( this ) in some other dialogs
This commit is contained in:
parent
2ab98f76c1
commit
ca2b9cee57
|
@ -197,7 +197,10 @@ void DIALOG_PRINT_USING_PRINTER::OnInitDialog( wxInitDialogEvent& event )
|
||||||
pageSetupDialogData.GetPrintData().SetOrientation( pageInfo.GetWxOrientation() );
|
pageSetupDialogData.GetPrintData().SetOrientation( pageInfo.GetWxOrientation() );
|
||||||
|
|
||||||
if ( GetSizer() )
|
if ( GetSizer() )
|
||||||
|
{
|
||||||
GetSizer()->SetSizeHints( this );
|
GetSizer()->SetSizeHints( this );
|
||||||
|
GetSizer()->Fit( this );
|
||||||
|
}
|
||||||
|
|
||||||
// Rely on the policy in class DIALOG_SHIM, which centers the dialog
|
// Rely on the policy in class DIALOG_SHIM, which centers the dialog
|
||||||
// initially during a runtime session but gives user the ability to move it in
|
// initially during a runtime session but gives user the ability to move it in
|
||||||
|
|
|
@ -62,10 +62,12 @@ bool SCH_EDIT_FRAME::EditSheet( SCH_SHEET* aSheet, wxDC* aDC )
|
||||||
* column from being sized correctly. It doesn't cause any problems
|
* column from being sized correctly. It doesn't cause any problems
|
||||||
* on win32 so it doesn't need to wrapped in ugly #ifdef __WXGTK__
|
* on win32 so it doesn't need to wrapped in ugly #ifdef __WXGTK__
|
||||||
* #endif.
|
* #endif.
|
||||||
|
* Still presen in wxWidgets 3.0.2
|
||||||
*/
|
*/
|
||||||
dlg.Layout();
|
dlg.Layout();
|
||||||
dlg.Fit();
|
dlg.Fit();
|
||||||
dlg.SetMinSize( dlg.GetSize() );
|
dlg.SetMinSize( dlg.GetSize() );
|
||||||
|
dlg.GetSizer()->Fit( &dlg );
|
||||||
|
|
||||||
if( dlg.ShowModal() == wxID_CANCEL )
|
if( dlg.ShowModal() == wxID_CANCEL )
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue