diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-28 18:25:10 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-28 18:25:10 +0000 |
commit | 6845f46001496a8bfd3ec3706533aeded64099ac (patch) | |
tree | 4ebba84405102896658c5b906d2b1b2889b4a3bb /views/controls/scroll_view.cc | |
parent | 4b60c637205ac05d039a3219da88e51af52e9213 (diff) | |
download | chromium_src-6845f46001496a8bfd3ec3706533aeded64099ac.zip chromium_src-6845f46001496a8bfd3ec3706533aeded64099ac.tar.gz chromium_src-6845f46001496a8bfd3ec3706533aeded64099ac.tar.bz2 |
gtk implemenation of Scrollbar.
enabled ScrollView on linux.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/222030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27381 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/scroll_view.cc')
-rw-r--r-- | views/controls/scroll_view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/controls/scroll_view.cc b/views/controls/scroll_view.cc index ecc3033..a5b5f6a 100644 --- a/views/controls/scroll_view.cc +++ b/views/controls/scroll_view.cc @@ -353,7 +353,7 @@ void ScrollView::ScrollToPosition(ScrollBar* source, int position) { else if (position > max_pos) position = max_pos; contents_->SetX(-position); - contents_->SchedulePaint(contents_->GetLocalBounds(true), true); + contents_->SchedulePaint(contents_->GetVisibleBounds(), true); } } else if (source == vert_sb_ && vert_sb_->IsVisible()) { int vh = viewport_->height(); @@ -366,7 +366,7 @@ void ScrollView::ScrollToPosition(ScrollBar* source, int position) { else if (position > max_pos) position = max_pos; contents_->SetY(-position); - contents_->SchedulePaint(contents_->GetLocalBounds(true), true); + contents_->SchedulePaint(contents_->GetVisibleBounds(), true); } } } |