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

Issue 2848793004: MD Settings: Prevent flash of subpage when collapsing section

Created:
3 years, 7 months ago by michaelpg
Modified:
3 years, 7 months ago
Reviewers:
dpapad
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, esprehn, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Prevent flash of subpage when collapsing section settings-subpage should never show its overflow. In practice, AFAICT, its content only exceeds its boundaries during the collapse animation when navigating back to the main page from a subpage. The settings-section handles clipping for that collapse animation, so we don't need "overflow: hidden" on the subpage. But when the collapse the collapse animation finishes, we remove clipping from settings-section.[1] The settings-subpage then becomes visible over the rest of the page during a brief moment while it completes its fade-out animation. By setting a constant "overflow: hidden" on settings-subpage, we ensure that its content does not overflow after the settings-section has collapsed while the subpage is finishing its fade-out animation. [1] This lets us show search bubbles outside the settings-section boundary. BUG=716680 R=dpapad@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Patch Set 1 #

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

Messages

Total messages: 5 (2 generated)
michaelpg
PTAL. Further explained in crbug.com/716680.
3 years, 7 months ago (2017-04-29 00:46:01 UTC) #3
dpapad
LGTM. I tried it locally too and could not find a way to break it. ...
3 years, 7 months ago (2017-05-02 20:34:09 UTC) #4
michaelpg
3 years, 7 months ago (2017-05-05 21:09:02 UTC) #5
On 2017/05/02 20:34:09, dpapad wrote:
> LGTM. I tried it locally too and could not find a way to break it. Having said
> that, this fix relies on the fact that we never show a bubble within a
> settings-subpage (otherwise it could get clipped).

Yeah, that's unfortunate. The primary repro case has likely been resolved with
crrev.com/2856223007/ so I'll hold off on landing this CL.

Powered by Google App Engine
This is Rietveld 408576698