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

Unified Diff: chrome/browser/resources/settings/settings_ui/settings_ui.js

Issue 2825203003: MD Settings: Remove subpage animation when landing directly on it. (Closed)
Patch Set: format Created 3 years, 7 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/settings_ui/settings_ui.js
diff --git a/chrome/browser/resources/settings/settings_ui/settings_ui.js b/chrome/browser/resources/settings/settings_ui/settings_ui.js
index 20dde6a077414a3161372341a05ed00962af8cac..a69f102e9e8d6896013ec58f7e0febc44e364f5d 100644
--- a/chrome/browser/resources/settings/settings_ui/settings_ui.js
+++ b/chrome/browser/resources/settings/settings_ui/settings_ui.js
@@ -158,6 +158,14 @@ Polymer({
this.showAndroidApps_ = loadTimeData.valueExists('androidAppsAllowed') &&
loadTimeData.getBoolean('androidAppsAllowed');
+
+ this.addEventListener('show-container', function() {
+ this.$.container.style.visibility = 'visible';
+ }.bind(this));
+
+ this.addEventListener('hide-container', function() {
+ this.$.container.style.visibility = 'hidden';
+ }.bind(this));
},
/** @private {?IntersectionObserver} */

Powered by Google App Engine
This is Rietveld 408576698