Fix glitch showing/hiding Preview window with the toolbar button on sprites with canvas size > Preview window viewport

This commit is contained in:
David Capello 2018-11-28 12:02:57 -03:00
parent 95247255ac
commit e516d26fa8

View File

@ -233,6 +233,10 @@ void View::onSizeHint(SizeHintEvent& ev)
void View::onSetViewScroll(const gfx::Point& pt)
{
// If the view is not visible, we don't adjust any screen region.
if (!isVisible())
return;
Point oldScroll = viewScroll();
Size maxsize = getScrollableSize();
Size visible = visibleSize();