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

Issue 1057603006: [Effen] Only skip rows we're showing, when skipping past the rows that we've scrolled beyond in the… (Closed)

Created:
5 years, 8 months ago by Hixie
Modified:
5 years, 8 months ago
Reviewers:
eseidel
CC:
abarth-chromium, mojo-reviews_chromium.org, ojan, qsr+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

[Effen] Only skip rows we're showing, when skipping past the rows that we've scrolled beyond in the stock list. Currently, if you then scroll down N items with a filter set, we select which stock to show by taking the entire list of stocks, skipping the first N, then filtering the list, then selecting as many stocks as needed to fill the list. So suppose the list is A, B, Cx, Dx, Ex, F, and the filter is "x", and you've scrolled down 1 item. Currently we'd show Cx, Dx, Ex. Scroll down 1 again. We still show Cx, Dx, Ex. What we _should_ show is Dx, Ex if you've scrolled down 1, and just Ex if you've scrolled two. This patch fixes this. We now skip rows _after_ filtering. This fixes the bug whereby if you set a filter then fling the list, we show the same item over and over as if in a loop. R=eseidel@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/ec7a08c8031612827793fa84611f6e037af5d7f3

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M sky/examples/stocks/lib/stock_list.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
eseidel
What is the effect of this change?
5 years, 8 months ago (2015-04-20 23:25:07 UTC) #2
Hixie
On 2015/04/20 at 23:25:07, eseidel wrote: > What is the effect of this change? Currently, ...
5 years, 8 months ago (2015-04-20 23:32:02 UTC) #3
Hixie
(this fixes the bug whereby if you set a filter then fling the list, we ...
5 years, 8 months ago (2015-04-20 23:32:51 UTC) #4
eseidel
Assuming you update the description to describe what the effect of this bug is, lgtm. ...
5 years, 8 months ago (2015-04-20 23:33:38 UTC) #5
Hixie
5 years, 8 months ago (2015-04-20 23:35:53 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
ec7a08c8031612827793fa84611f6e037af5d7f3 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698