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

Unified Diff: chrome/browser/resources/settings/basic_page/basic_page.html

Issue 2758863004: [MD settings] hide scrollbar during animation to subpage (Closed)
Patch Set: moved subpage animating check to current route changed Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/basic_page/basic_page.html
diff --git a/chrome/browser/resources/settings/basic_page/basic_page.html b/chrome/browser/resources/settings/basic_page/basic_page.html
index 257bace768b0e61a28f220836e81db3f6857b11a..3a9bb9b94d8f01fc784838052f399e808a6fe7f3 100644
--- a/chrome/browser/resources/settings/basic_page/basic_page.html
+++ b/chrome/browser/resources/settings/basic_page/basic_page.html
@@ -28,6 +28,12 @@
<dom-module id="settings-basic-page">
<template>
<style include="settings-page-styles">
+ :host([is-subpage-animating]) {
+ /* Prevent an unwanted horizontal scrollbar when transitioning back from
+ * a sub-page. */
+ overflow: hidden;
+ }
+
#advancedToggle {
--paper-button: {
text-transform: none;

Powered by Google App Engine
This is Rietveld 408576698