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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2020-12-29 20:47:42 +0300
committerYuSanka <yusanka@gmail.com>2020-12-29 21:04:38 +0300
commit40fb39f5e1a2ba9cf2554e66164f52cd186b054a (patch)
treed91796c751bde57f7f4be35d755c57a8410bc926
parentd2b45c282e70ae75e1f99c158103833a667e0e5c (diff)
Change the y_step for sidebar slider to fix strange layout of the sidebar
-rw-r--r--src/slic3r/GUI/Plater.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp
index 4526bc51d..71e17b489 100644
--- a/src/slic3r/GUI/Plater.cpp
+++ b/src/slic3r/GUI/Plater.cpp
@@ -633,7 +633,11 @@ Sidebar::Sidebar(Plater *parent)
: wxPanel(parent, wxID_ANY, wxDefaultPosition, wxSize(42 * wxGetApp().em_unit(), -1)), p(new priv(parent))
{
p->scrolled = new wxScrolledWindow(this);
- p->scrolled->SetScrollbars(0, 100, 1, 2);
+// p->scrolled->SetScrollbars(0, 100, 1, 2); // ys_DELETE_after_testing. pixelsPerUnitY = 100 from https://github.com/prusa3d/PrusaSlicer/commit/8f019e5fa992eac2c9a1e84311c990a943f80b01,
+ // but this cause the bad layout of the sidebar, when all infoboxes appear.
+ // As a result we can see the empty block at the bottom of the sidebar
+ // But if we set this value to 5, layout will be better
+ p->scrolled->SetScrollRate(0, 5);
SetFont(wxGetApp().normal_font());
#ifndef __APPLE__