Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(747)

Issue 60059: Fix for issue 9659 (Closed)

Created:
11 years, 8 months ago by tedoc2000
Modified:
9 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix for issue 9659 Fixed already visible range check to use the proper width and height Use max_y instead of max_x when calculating the new Y value for contents_ Commented code to (hopefully) make it easier to understand.

Patch Set 1 #

Patch Set 2 : Fixed comment. #

Patch Set 3 : Switched < to > on calculation of new_x and new_y #

Patch Set 4 : Fixed up comment #

Total comments: 5

Patch Set 5 : Fixed up comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -3 lines) Patch
M chrome/views/controls/scroll_view.cc View 1 2 3 4 1 chunk +20 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
tedoc2000
Not sure who to give this to.
11 years, 8 months ago (2009-04-02 21:19:50 UTC) #1
tedoc2000
Fixed a typo in the comment
11 years, 8 months ago (2009-04-02 21:23:55 UTC) #2
tedoc2000
Sending to beng on jamesr's advice
11 years, 8 months ago (2009-04-02 21:29:09 UTC) #3
tedoc2000
The comparison sign was wrong when calculating the new_x and new_y. Basically when we scroll ...
11 years, 8 months ago (2009-04-03 00:05:17 UTC) #4
tedoc2000
Reassigning to sky based on issue 9659 assignment to sky
11 years, 8 months ago (2009-04-03 04:01:38 UTC) #5
sky
http://codereview.chromium.org/60059/diff/2001/3001 File chrome/views/controls/scroll_view.cc (right): http://codereview.chromium.org/60059/diff/2001/3001#newcode281 Line 281: // view nit: add a '.' at the ...
11 years, 8 months ago (2009-04-03 19:54:48 UTC) #6
tedoc2000
11 years, 8 months ago (2009-04-03 21:07:07 UTC) #7
Fixed up comments

http://codereview.chromium.org/60059/diff/2001/3001
File chrome/views/controls/scroll_view.cc (right):

http://codereview.chromium.org/60059/diff/2001/3001#newcode317
Line 317: (vis_rect.y() > y) ? y : std::max(0, max_y - viewport_->height());
After discussion on IRC sky_ agreed my code was correct

Powered by Google App Engine
This is Rietveld 408576698