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:
authorEnrico Turri <enricoturri@seznam.cz>2019-07-03 09:58:05 +0300
committerEnrico Turri <enricoturri@seznam.cz>2019-07-03 09:58:05 +0300
commitd101ed709c79c305433a14e780be63428f3da12f (patch)
tree7dd2d29e16adf171e2d9d7b220962a5b81b230bd /src/slic3r/GUI/BedShapeDialog.cpp
parent2a71665de90f043d25a9b8f52281a1fc1072fdf2 (diff)
Button 'Load shape from STL' centered into its panel in bed shape dialog
Diffstat (limited to 'src/slic3r/GUI/BedShapeDialog.cpp')
-rw-r--r--src/slic3r/GUI/BedShapeDialog.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/slic3r/GUI/BedShapeDialog.cpp b/src/slic3r/GUI/BedShapeDialog.cpp
index 20aa68ef2..4dc7d0f79 100644
--- a/src/slic3r/GUI/BedShapeDialog.cpp
+++ b/src/slic3r/GUI/BedShapeDialog.cpp
@@ -92,13 +92,15 @@ void BedShapePanel::build_panel(ConfigOptionPoints* default_pt)
Line line{ "", "" };
line.full_width = 1;
line.widget = [this](wxWindow* parent) {
- auto btn = new wxButton(parent, wxID_ANY, _(L("Load shape from STL...")), wxDefaultPosition, wxDefaultSize);
-
- auto sizer = new wxBoxSizer(wxHORIZONTAL);
- sizer->Add(btn);
+ auto shape_btn = new wxButton(parent, wxID_ANY, _(L("Load shape from STL...")));
+ wxSizer* shape_sizer = new wxBoxSizer(wxHORIZONTAL);
+ shape_sizer->Add(shape_btn, 1, wxEXPAND);
- btn->Bind(wxEVT_BUTTON, ([this](wxCommandEvent e)
- {
+ wxSizer* sizer = new wxBoxSizer(wxVERTICAL);
+ sizer->Add(shape_sizer, 1, wxEXPAND);
+
+ shape_btn->Bind(wxEVT_BUTTON, ([this](wxCommandEvent& e)
+ {
load_stl();
}));