Fix scroll in Preview window (fix #811)

Regression bug introduced in 9772f99303b5b6ab7cd0561c68bbe9de402ae814
This commit is contained in:
David Capello 2015-09-18 16:35:29 -03:00
parent 09e18ddf2b
commit 629bea41a8

View File

@ -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