Fixed rounding of numbers for the controls width (Try to fix controls flashing on HDPI/linux)

This commit is contained in:
YuSanka 2019-02-04 12:07:15 +01:00
parent e2b8c3e33c
commit b7f24aebe3
7 changed files with 37 additions and 25 deletions

View file

@ -124,7 +124,7 @@ ConfigOptionsGroupShp BedShapePanel::init_shape_options_page(wxString title)
ConfigOptionsGroupShp optgroup;
optgroup = std::make_shared<ConfigOptionsGroup>(panel, _(L("Settings")));
optgroup->label_width = 100;
optgroup->label_width = int(7.7*wxGetApp().em_unit() + 0.5);//100;
optgroup->m_on_change = [this](t_config_option_key opt_key, boost::any value) {
update_shape();
};