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

Issue 2441173002: MD Settings: Ensure iron-lists are populated and sized correctly.

Created:
4 years, 2 months ago by dpapad
Modified:
4 years, 1 month ago
Reviewers:
stevenjb
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-elements_chromium.org, dbeam+watch-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, michaelpg+watch-elements_chromium.org, oshima+watch_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Ensure iron-lists are populated and sized correctly, without using setInterval(). Instead rely on a call to this.async() to ensure that the iron-list's contents have been updated before firing an 'iron-resize' event. This fixes the problem of an infinite setInterval() when a list is rendered in the background because user initiated a search query. BUG=657336 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Patch Set 1 #

Patch Set 2 : Undo #

Total comments: 2

Patch Set 3 : Remove scroll container class, seemed to have no effect. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -25 lines) Patch
M chrome/browser/resources/settings/on_startup_page/startup_urls_page.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/search_engines_page/search_engines_list.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/webui/resources/cr_elements/cr_scrollable_behavior.js View 1 chunk +5 lines, -17 lines 0 comments Download
M ui/webui/resources/cr_elements/shared_style_css.html View 1 2 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
stevenjb
https://codereview.chromium.org/2441173002/diff/20001/ui/webui/resources/cr_elements/cr_scrollable_behavior.js File ui/webui/resources/cr_elements/cr_scrollable_behavior.js (right): https://codereview.chromium.org/2441173002/diff/20001/ui/webui/resources/cr_elements/cr_scrollable_behavior.js#newcode72 ui/webui/resources/cr_elements/cr_scrollable_behavior.js:72: }.bind(this)); Assuming this works, then sweet, lgtm! See comment ...
4 years, 1 month ago (2016-10-24 21:35:35 UTC) #5
dpapad
@Steven: I removed the scroll-container class (which had the 1px min-height), and I was still ...
4 years, 1 month ago (2016-10-24 22:24:34 UTC) #6
stevenjb
On 2016/10/24 22:24:34, dpapad wrote: > @Steven: I removed the scroll-container class (which had the ...
4 years, 1 month ago (2016-10-24 22:25:15 UTC) #7
dpapad
On 2016/10/24 at 22:25:15, stevenjb wrote: > On 2016/10/24 22:24:34, dpapad wrote: > > @Steven: ...
4 years, 1 month ago (2016-10-25 22:21:40 UTC) #8
stevenjb
OK, I tested this locally and was unable to repro the issues we were seeing ...
4 years, 1 month ago (2016-10-26 00:03:49 UTC) #9
dpapad
On 2016/10/26 at 00:03:49, stevenjb wrote: > OK, I tested this locally and was unable ...
4 years, 1 month ago (2016-10-26 00:19:05 UTC) #10
stevenjb
That makes sense I guess since the search render doesn't actually stamp things? Does the ...
4 years, 1 month ago (2016-10-26 00:26:33 UTC) #11
dpapad
On 2016/10/26 at 00:26:33, stevenjb wrote: > That makes sense I guess since the search ...
4 years, 1 month ago (2016-10-26 00:32:36 UTC) #12
dpapad
> > Does the current setInterval hack work with your repro? Kind of. It causes ...
4 years, 1 month ago (2016-10-26 00:38:14 UTC) #13
dpapad
4 years, 1 month ago (2016-10-26 01:44:10 UTC) #14
On 2016/10/26 at 00:38:14, dpapad wrote:
> > > Does the current setInterval hack work with your repro?
> 
> Kind of. It causes the iron-list to be fully populated, although it is clearly
visible (flickers) that it has 3 elements first, then the rest get painted. Also
if you never visit the page that holds the iron-list, the setInterval() executes
indefinitely, which is the original bug I am trying to fix.

@stevenjb: After investigating iron-list's internals (and with @dbeam's help),
it seems there is a bug that if fixed would eliminate the need to setInterval()
or this.async(). I still have not heard back from iron-list's authors though, so
not 100% sure yet. Sent a PR with the fix
https://github.com/PolymerElements/iron-list/pull/337 (could not find your
github ID to cc you there).

Powered by Google App Engine
This is Rietveld 408576698