hrev45499 adds 1 changeset to branch 'master' old head: 753d86ac8426919d5eefc9dc0e35b2cfbfe12735 new head: d52ffca978487d12ef5c08accea5dd442f0b931f overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=d52ffca+%5E753d86a ---------------------------------------------------------------------------- d52ffca: If above the scroll limit, scroll to limit. This case happens when you are scrolled to the end of the list and you do an action that causes the view to shrink but not enough for the scroll arrows to be detached such as remove a team or unexpand an application. Before it would keep you where you were showing an extra grey area, now it scrolls you back to the new scroll limit. [ John Scipione <jscipione@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev45499 Commit: d52ffca978487d12ef5c08accea5dd442f0b931f URL: http://cgit.haiku-os.org/haiku/commit/?id=d52ffca Author: John Scipione <jscipione@xxxxxxxxx> Date: Sun Apr 14 18:53:58 2013 UTC ---------------------------------------------------------------------------- 1 file changed, 11 insertions(+) src/apps/deskbar/InlineScrollView.cpp | 11 +++++++++++ ---------------------------------------------------------------------------- diff --git a/src/apps/deskbar/InlineScrollView.cpp b/src/apps/deskbar/InlineScrollView.cpp index 5d38f40..16225a6 100644 --- a/src/apps/deskbar/InlineScrollView.cpp +++ b/src/apps/deskbar/InlineScrollView.cpp @@ -451,6 +451,17 @@ TInlineScrollView::AttachScrollers() fScrollLimit = fTarget->Bounds().Width() - (frame.Width() - 2 * kScrollerDimension); } + + if (fScrollValue > fScrollLimit) { + // If scroll value is above limit scroll back + float delta = fScrollLimit - fScrollValue; + if (fOrientation == B_VERTICAL) + fTarget->ScrollBy(0, delta); + else + fTarget->ScrollBy(delta, 0); + + fScrollValue = fScrollLimit; + } return; }