summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/new_new_tab.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/new_new_tab.js')
-rw-r--r--chrome/browser/resources/new_new_tab.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/resources/new_new_tab.js b/chrome/browser/resources/new_new_tab.js
index 14fa721..c238b57 100644
--- a/chrome/browser/resources/new_new_tab.js
+++ b/chrome/browser/resources/new_new_tab.js
@@ -191,7 +191,10 @@ function layoutMostVisited() {
}
afterTransition(function() {
- mostVisitedElement.style.overflow = '';
+ // Only set overflow to visible if the element is shown.
+ if (opacity) {
+ mostVisitedElement.style.overflow = '';
+ }
});
logEvent('layoutMostVisited: ' + (Date.now() - d0));
@@ -545,7 +548,7 @@ function layoutLowerSections() {
var recommendationsShown = shownSections & Section.RECOMMENDATIONS;
if (recentShown || recommendationsShown) {
- lowerSectionsElement.style.height = '175px'
+ lowerSectionsElement.style.height = '198px';
lowerSectionsElement.style.opacity = '';
} else {
lowerSectionsElement.style.height = lowerSectionsElement.style.opacity = 0;