summaryrefslogtreecommitdiffstats
path: root/views/controls/scroll_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/scroll_view.cc')
-rw-r--r--views/controls/scroll_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/controls/scroll_view.cc b/views/controls/scroll_view.cc
index ecaf3e2..79183da 100644
--- a/views/controls/scroll_view.cc
+++ b/views/controls/scroll_view.cc
@@ -147,7 +147,7 @@ void ScrollView::Layout() {
// override this default behavior, the inner view has to calculate the
// available space, used ComputeScrollBarsVisibility() to use the same
// calculation that is done here and sets its bound to fit within.
- gfx::Rect viewport_bounds = GetContentsBounds();
+ gfx::Rect viewport_bounds = GetLocalBounds();
// Realign it to 0 so it can be used as-is for SetBounds().
viewport_bounds.set_origin(gfx::Point(0, 0));
// viewport_size is the total client space available.