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

Unified Diff: ios/chrome/browser/ui/ntp/new_tab_page_bar.mm

Issue 2590223002: [ios] Fixes the recent tabs button on the NTP. (Closed)
Patch Set: Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/ntp/new_tab_page_bar.mm
diff --git a/ios/chrome/browser/ui/ntp/new_tab_page_bar.mm b/ios/chrome/browser/ui/ntp/new_tab_page_bar.mm
index e374a729cdba9502c9733ed8f69460c2797aaf1a..760902a83eec023a970b8b6a8d630b6b56e181e6 100644
--- a/ios/chrome/browser/ui/ntp/new_tab_page_bar.mm
+++ b/ios/chrome/browser/ui/ntp/new_tab_page_bar.mm
@@ -143,7 +143,8 @@ const int kNumberOfTabsIncognito = 2;
CGFloat logoWidth = logoView_.get().image.size.width;
CGFloat padding = [self useIconsInButtons] ? logoWidth : 0;
CGFloat buttonPadding = floor((CGRectGetWidth(self.bounds) - padding -
- (buttonWidth_ * self.buttons.count) / 2) +
+ buttonWidth_ * self.buttons.count) /
+ 2 +
padding);
for (NSUInteger i = 0; i < self.buttons.count; ++i) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698