Chromium Code Reviews
DescriptionMD 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 #
Dependent Patchsets: Messages
Total messages: 13 (6 generated)
|
||||||||||||||||||||||||||||