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

Issue 2197093002: MD Settings: Fix starting height of expanding sections (Closed)

Created:
4 years, 4 months ago by michaelpg
Modified:
4 years, 4 months ago
Reviewers:
tommycli
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@FixErrors
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Fix starting height of expanding sections Changes to the way the route is set have shuffled how currentRoute changes propagate, making callbacks run at different times than before. One result is that the settings-animated-pages selects its subpage before the MainPageBehavior gets a chance to freeze the section's height. The fix, albeit a bit hacky, is to freeze the height of settings-animated-pages before selecting a subpage from the main page. I also considered ways of changing the order of callbacks or adding asynchronicity... but that's just adding fuel to the fire. Subpages opening/closing will be done by events soon, so we can fire an event here eventually. R=tommycli@chromium.org BUG=633046 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/ded0cc6677d07279b6722bd73ed0f32723d90283 Cr-Commit-Position: refs/heads/master@{#409014}

Patch Set 1 #

Patch Set 2 : hacks++ #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -2 lines) Patch
M chrome/browser/resources/settings/settings_page/settings_animated_pages.html View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_page/settings_animated_pages.js View 1 1 chunk +13 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (6 generated)
michaelpg
4 years, 4 months ago (2016-08-01 08:34:42 UTC) #2
tommycli
On 2016/08/01 08:34:42, michaelpg wrote: So in the old world, route changes propagated upwards from ...
4 years, 4 months ago (2016-08-01 16:20:28 UTC) #4
michaelpg
On 2016/08/01 16:20:28, tommycli wrote: > On 2016/08/01 08:34:42, michaelpg wrote: > > So in ...
4 years, 4 months ago (2016-08-01 16:23:41 UTC) #5
tommycli
lgtm thanks for the info!
4 years, 4 months ago (2016-08-01 16:24:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2197093002/40001
4 years, 4 months ago (2016-08-01 17:55:30 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-01 19:14:24 UTC) #11
commit-bot: I haz the power
4 years, 4 months ago (2016-08-01 19:16:18 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ded0cc6677d07279b6722bd73ed0f32723d90283
Cr-Commit-Position: refs/heads/master@{#409014}

Powered by Google App Engine
This is Rietveld 408576698