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

Unified Diff: chrome/browser/resources/ntp4/recently_closed.js

Issue 12038090: Layout the NTP footer with flexboxes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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 | « chrome/browser/resources/ntp4/other_sessions.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/recently_closed.js
diff --git a/chrome/browser/resources/ntp4/recently_closed.js b/chrome/browser/resources/ntp4/recently_closed.js
index 2a6f37e9aca41b3b1f2c9a2e61018be3df77444d..b0d26b052c810cd5b58897bb8affb7c3c2eee187 100644
--- a/chrome/browser/resources/ntp4/recently_closed.js
+++ b/chrome/browser/resources/ntp4/recently_closed.js
@@ -36,7 +36,6 @@ cr.define('ntp', function() {
document.body.appendChild(this.menu);
this.needsRebuild_ = true;
- this.hidden = true;
this.anchorType = cr.ui.AnchorType.ABOVE;
this.invertLeftRight = true;
},
@@ -64,7 +63,7 @@ cr.define('ntp', function() {
set dataItems(dataItems) {
this.dataItems_ = dataItems;
this.needsRebuild_ = true;
- this.hidden = !dataItems.length;
+ this.classList.toggle('invisible', !dataItems.length);
},
/**
« no previous file with comments | « chrome/browser/resources/ntp4/other_sessions.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698