diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index be817a68a..e76ac6d57 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -255,11 +255,13 @@ void TabbedArea::widgetResized(const gcn::Event &event _UNUSED_) if (mFollowDownScroll && height != 0) { gcn::Rectangle rect = w->getDimension(); - if (rect.height != 0 && rect.height > height) + if (rect.height != 0 && rect.height > height + 2) { scr = dynamic_cast<ScrollArea*>(w); if (scr && scr->getVerticalScrollAmount() - == scr->getVerticalMaxScroll()) + >= scr->getVerticalMaxScroll() - 2 + && scr->getVerticalScrollAmount() + <= scr->getVerticalMaxScroll() + 2) { newScroll = scr->getVerticalScrollAmount() + rect.height - height; |