Commit e621b597 authored by thakis@chromium.org's avatar thakis@chromium.org

mac: Fix tab strip outline when dragging out a tab.

The tab drawing code had a spurious "+ 1". Move that into the
tab height, so that other places that look at this (such as the
tab drag-out code) get a consistent value.

The new height also matches the height of the corresponding bitmap:
chrome/app/theme/def_100/mac/tab_active_left.png ist 29px high and
has empty pixels at the top.

BUG=52468
TEST=drag out tab. tab in new window looks good.

Review URL: https://codereview.chromium.org/11419302

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171013 0039d316-1c4b-4281-b951-d872f2087c98
parent 9fdda94f
......@@ -517,7 +517,7 @@ private:
}
+ (CGFloat)defaultTabHeight {
return 25.0;
return 26.0;
}
+ (CGFloat)defaultLeftIndentForControls {
......@@ -970,7 +970,7 @@ private:
BOOL isPlaceholder = [[tab view] isEqual:placeholderTab_];
NSRect tabFrame = [[tab view] frame];
tabFrame.size.height = [[self class] defaultTabHeight] + 1;
tabFrame.size.height = [[self class] defaultTabHeight];
tabFrame.origin.y = 0;
tabFrame.origin.x = offset;
......
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