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

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

Issue 7674001: [ntp4] Prevent the page switcher from overlapping the bookmarks-page title header. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Revew tweak. Created 9 years, 4 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/new_tab.css ('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/new_tab.js
===================================================================
--- chrome/browser/resources/ntp4/new_tab.js (revision 97320)
+++ chrome/browser/resources/ntp4/new_tab.js (working copy)
@@ -555,6 +555,12 @@
pageSwitcherRight.style.width =
(page.sideMargin - scrollbarWidth + 13) + 'px';
pageSwitcherRight.style.right = scrollbarWidth + 'px';
+
+ var offsetTop = page.querySelector('.tile-page-content').offsetTop;
+ pageSwitcherLeft.style.top = offsetTop + 'px';
Evan Stade 2011/08/18 20:29:47 I would put the + 'px' in offsetTop as well
csilv 2011/08/18 20:41:39 Done.
+ pageSwitcherRight.style.top = offsetTop + 'px';
+ pageSwitcherLeft.style.paddingBottom = offsetTop + 'px';
+ pageSwitcherRight.style.paddingBottom = offsetTop + 'px';
}
/**
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698