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

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

Issue 2758863004: [MD settings] hide scrollbar during animation to subpage (Closed)
Patch Set: animating when either is a subpage 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/settings_page/main_page_behavior.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a16666643d5194c66b309539b5565744bd85f9a5..206c4b053f0ee2745705d5bab10062497592dc8b 100644
--- a/chrome/browser/resources/settings/basic_page/basic_page.html
+++ b/chrome/browser/resources/settings/basic_page/basic_page.html
@@ -27,6 +27,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;
« no previous file with comments | « no previous file | chrome/browser/resources/settings/settings_page/main_page_behavior.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698