summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/resources/new_new_tab.css2
-rw-r--r--chrome/browser/resources/new_new_tab.js7
2 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/resources/new_new_tab.css b/chrome/browser/resources/new_new_tab.css
index c7cac8a..352417d 100644
--- a/chrome/browser/resources/new_new_tab.css
+++ b/chrome/browser/resources/new_new_tab.css
@@ -399,7 +399,7 @@ html[dir=rtl] .thumbnail-container .title div {
border: 1px solid hsl(213, 65%, 92%);
padding-bottom: 5px;
overflow: hidden;
- min-height: 175px;
+ min-height: 198px; /* height of 6 items plus the header */
vertical-align: top;
margin: 0;
}
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;