Commit 0c55868e authored by rohitrao's avatar rohitrao Committed by Commit bot

[ios] Fixes the recent tabs button on the NTP.

I added parentheses to the frame calculation expression to work around
clang-format issues, but I added them in the wrong place and made the math
wrong.  This CL removes the parentheses and restores the original expression.

BUG=675595

Review-Url: https://codereview.chromium.org/2590223002
Cr-Commit-Position: refs/heads/master@{#439813}
parent 806a7d22
...@@ -143,7 +143,8 @@ const int kNumberOfTabsIncognito = 2; ...@@ -143,7 +143,8 @@ const int kNumberOfTabsIncognito = 2;
CGFloat logoWidth = logoView_.get().image.size.width; CGFloat logoWidth = logoView_.get().image.size.width;
CGFloat padding = [self useIconsInButtons] ? logoWidth : 0; CGFloat padding = [self useIconsInButtons] ? logoWidth : 0;
CGFloat buttonPadding = floor((CGRectGetWidth(self.bounds) - padding - CGFloat buttonPadding = floor((CGRectGetWidth(self.bounds) - padding -
(buttonWidth_ * self.buttons.count) / 2) + buttonWidth_ * self.buttons.count) /
2 +
padding); padding);
for (NSUInteger i = 0; i < self.buttons.count; ++i) { for (NSUInteger i = 0; i < self.buttons.count; ++i) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment