Skip to content

Commit

Permalink
Fixed|UI|Home: Invalid horizontal scroll position when resizing window
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jul 20, 2016
1 parent bf25933 commit b754da5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doomsday/apps/client/src/ui/home/homewidget.cpp
Expand Up @@ -350,14 +350,14 @@ DENG_GUI_PIMPL(HomeWidget)
updateHighlightedTab();

// Make sure we stay within the valid range.
if (visibleTabRange().end >= columns.size())
if (!visibleTabRange().contains(int(tabs->current())))
{
currentOffsetTab = columns.size() - int(visibleColumnCount);
currentOffsetTab = int(tabs->current());
setScrollOffset(currentOffsetTab, 0.0);
}
if (!visibleTabRange().contains(int(tabs->current())))
if (visibleTabRange().end >= columns.size())
{
currentOffsetTab = int(tabs->current());
currentOffsetTab = columns.size() - int(visibleColumnCount);
setScrollOffset(currentOffsetTab, 0.0);
}
}
Expand Down

0 comments on commit b754da5

Please sign in to comment.