From 629bea41a8d7e237e185d2ff63085e40f247f14e Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 18 Sep 2015 16:35:29 -0300 Subject: [PATCH] Fix scroll in Preview window (fix #811) Regression bug introduced in 9772f99303b5b6ab7cd0561c68bbe9de402ae814 --- src/ui/view.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/view.cpp b/src/ui/view.cpp index 3e61914ab..274902f58 100644 --- a/src/ui/view.cpp +++ b/src/ui/view.cpp @@ -104,6 +104,8 @@ void View::setScrollableSize(const Size& sz) if (m_scrollbar_v.getParent()) removeChild(&m_scrollbar_v); m_scrollbar_h.setVisible(false); m_scrollbar_v.setVisible(false); + m_scrollbar_h.setSize(sz.w); + m_scrollbar_v.setSize(sz.h); } // Setup viewport