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

Issue 393943003: Settings page sliding transition (Closed)

Created:
6 years, 5 months ago by michaelpg
Modified:
6 years, 3 months ago
Reviewers:
stevenjb, Dan Beam
CC:
chromium-reviews, dbeam+watch-options_chromium.org, arv+watch_chromium.org, dstockwell, Timothy Loh
Project:
chromium
Visibility:
Public.

Description

Schedule sliding transition after height change On the BrowserOptions page, sections that are supposed to hide with an upward sliding transition instead hide instantly. This is apparently because the style recalc that adds the CSS transition also sets the new section height (i.e., the first style recalc usually doesn't happen before the setTimeout is triggered in animatedSectionHeightChange_). To work around this, force a recalc before setting the new height. BUG=394053 R=dbeam@chromium.org Committed: https://crrev.com/fdda19490270c1b6d35b745b5ef16cc724bb7643 Cr-Commit-Position: refs/heads/master@{#294285}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Simplify #

Patch Set 3 : force style recalc #

Total comments: 4

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -14 lines) Patch
M chrome/browser/resources/options/browser_options.js View 1 2 3 2 chunks +4 lines, -14 lines 0 comments Download

Messages

Total messages: 14 (1 generated)
michaelpg
6 years, 5 months ago (2014-07-15 19:09:21 UTC) #1
Dan Beam
https://codereview.chromium.org/393943003/diff/1/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/393943003/diff/1/chrome/browser/resources/options/browser_options.js#newcode675 chrome/browser/resources/options/browser_options.js:675: window.requestAnimationFrame(function() { please handle the case where a user ...
6 years, 5 months ago (2014-07-15 23:04:15 UTC) #2
michaelpg
https://codereview.chromium.org/393943003/diff/1/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/393943003/diff/1/chrome/browser/resources/options/browser_options.js#newcode675 chrome/browser/resources/options/browser_options.js:675: window.requestAnimationFrame(function() { On 2014/07/15 23:04:15, Dan Beam wrote: > ...
6 years, 5 months ago (2014-07-15 23:18:32 UTC) #3
Dan Beam
what's the deal on this?
6 years, 4 months ago (2014-08-21 20:37:49 UTC) #4
michaelpg
On 2014/08/21 20:37:49, Dan Beam wrote: > what's the deal on this? I tried a ...
6 years, 4 months ago (2014-08-21 20:52:48 UTC) #5
michaelpg
This addresses the original bug. I don't know why, but when animatedSectionHeightChange_ is called as ...
6 years, 4 months ago (2014-08-22 22:17:58 UTC) #6
Dan Beam
On 2014/08/22 22:17:58, michaelpg wrote: > This addresses the original bug. > > I don't ...
6 years, 3 months ago (2014-09-05 00:16:48 UTC) #7
michaelpg
I started a discussion with a simplified example at https://crbug.com/411103. timloh: "Transitions only fire if ...
6 years, 3 months ago (2014-09-10 22:03:19 UTC) #8
Dan Beam
lgtm it boggles my mind that something.onclick = animate; behaves *more* reliably than something.onclick = ...
6 years, 3 months ago (2014-09-10 22:56:35 UTC) #9
michaelpg
Thanks. https://codereview.chromium.org/393943003/diff/40001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/393943003/diff/40001/chrome/browser/resources/options/browser_options.js#newcode748 chrome/browser/resources/options/browser_options.js:748: // Force a style recalc before starting the ...
6 years, 3 months ago (2014-09-10 23:19:52 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/393943003/60001
6 years, 3 months ago (2014-09-10 23:49:56 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 36feab56fbd0214e01031f9548240b20c374656e
6 years, 3 months ago (2014-09-11 01:37:32 UTC) #13
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 01:44:15 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fdda19490270c1b6d35b745b5ef16cc724bb7643
Cr-Commit-Position: refs/heads/master@{#294285}

Powered by Google App Engine
This is Rietveld 408576698