summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/resources/ntp4/new_tab.css3
-rw-r--r--chrome/browser/resources/ntp4/new_tab.js6
2 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/resources/ntp4/new_tab.css b/chrome/browser/resources/ntp4/new_tab.css
index e66eefc..c0a0a97 100644
--- a/chrome/browser/resources/ntp4/new_tab.css
+++ b/chrome/browser/resources/ntp4/new_tab.css
@@ -201,10 +201,11 @@ html[dir='rtl'] #attribution {
.page-switcher {
background-color: transparent;
border: none;
+ bottom: 0;
font-size: 40px;
- height: 100%;
padding: 0;
position: absolute;
+ margin: 0;
max-width: 150px;
min-width: 90px;
opacity: 0.3;
diff --git a/chrome/browser/resources/ntp4/new_tab.js b/chrome/browser/resources/ntp4/new_tab.js
index 4dcd706..a4c54f6 100644
--- a/chrome/browser/resources/ntp4/new_tab.js
+++ b/chrome/browser/resources/ntp4/new_tab.js
@@ -555,6 +555,12 @@ cr.define('ntp4', function() {
pageSwitcherRight.style.width =
(page.sideMargin - scrollbarWidth + 13) + 'px';
pageSwitcherRight.style.right = scrollbarWidth + 'px';
+
+ var offsetTop = page.querySelector('.tile-page-content').offsetTop + 'px';
+ pageSwitcherLeft.style.top = offsetTop;
+ pageSwitcherRight.style.top = offsetTop;
+ pageSwitcherLeft.style.paddingBottom = offsetTop;
+ pageSwitcherRight.style.paddingBottom = offsetTop;
}
/**