ControllerConfigDiag: Potentially fix scaling problems on high DPI
Fixes issue 7940 hopefully.
This commit is contained in:
parent
ca18e51450
commit
6adfa92a7e
|
@ -65,6 +65,7 @@ ControllerConfigDiag::ControllerConfigDiag(wxWindow* const parent)
|
||||||
Bind(wxEVT_BUTTON, &ControllerConfigDiag::Save, this, wxID_OK);
|
Bind(wxEVT_BUTTON, &ControllerConfigDiag::Save, this, wxID_OK);
|
||||||
Bind(wxEVT_BUTTON, &ControllerConfigDiag::Cancel, this, wxID_CANCEL);
|
Bind(wxEVT_BUTTON, &ControllerConfigDiag::Cancel, this, wxID_CANCEL);
|
||||||
|
|
||||||
|
SetLayoutAdaptationMode(wxDIALOG_ADAPTATION_MODE_ENABLED);
|
||||||
SetSizerAndFit(main_sizer);
|
SetSizerAndFit(main_sizer);
|
||||||
Center();
|
Center();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue