diff --git a/src/app/ui/status_bar.cpp b/src/app/ui/status_bar.cpp index b588a6bb3..09781347a 100644 --- a/src/app/ui/status_bar.cpp +++ b/src/app/ui/status_bar.cpp @@ -174,7 +174,6 @@ StatusBar::StatusBar() setup_mini_look(m_slider); m_slider->Change.connect(Bind(&StatusBar::onCelOpacitySliderChange, this)); - m_slider->setMinSize(gfx::Size(ui::display_w()/5, 0)); box1->setBorder(gfx::Border(2, 1, 2, 2)*guiscale()); @@ -323,6 +322,8 @@ void StatusBar::showTool(int msecs, tools::Tool* tool) void StatusBar::onResize(ResizeEvent& ev) { + m_slider->setMinSize(gfx::Size(ui::display_w()/5, 0)); + setBoundsQuietly(ev.getBounds()); Border border = getBorder();