Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2019-04-25 16:06:44 +0300
committerYuSanka <yusanka@gmail.com>2019-04-25 16:09:12 +0300
commit708037158e78dfe0552b3ed5d9498da1832e031b (patch)
tree0400c2bc1421a673f4e1ff599ddad83a40580fd6 /src/slic3r/GUI/Preferences.cpp
parent3f978f6afe95411ebe25fd8fcb38986b6d8ecbc4 (diff)
Added msw_buttons_rescale() - Function for a scaling Dialog's buttons under MSW
Diffstat (limited to 'src/slic3r/GUI/Preferences.cpp')
-rw-r--r--src/slic3r/GUI/Preferences.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/slic3r/GUI/Preferences.cpp b/src/slic3r/GUI/Preferences.cpp
index 69f4e3493..81d242d4f 100644
--- a/src/slic3r/GUI/Preferences.cpp
+++ b/src/slic3r/GUI/Preferences.cpp
@@ -8,7 +8,7 @@ namespace GUI {
PreferencesDialog::PreferencesDialog(wxWindow* parent) :
DPIDialog(parent, wxID_ANY, _(L("Preferences")), wxDefaultPosition,
- wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
+ wxDefaultSize, wxDEFAULT_DIALOG_STYLE)
{
build();
}
@@ -146,11 +146,14 @@ void PreferencesDialog::on_dpi_changed(const wxRect &suggested_rect)
{
m_optgroup->msw_rescale();
- const int& em = em_unit();
- const wxSize& size = wxSize(50 * em, 29 * em);
+ const int em = em_unit();
+
+ msw_buttons_rescale(this, em, { wxID_OK, wxID_CANCEL });
+
+ const wxSize& size = wxSize(47 * em, 28 * em);
SetMinSize(size);
- SetSize(size);
+ Fit();
Refresh();
}