Adjust inset border values for OS X >= 10.6.

The bottom border was off by one pixel, use the values tested to work for OS X
10.[6789].

See #16808.
This commit is contained in:
sbrowne
2015-07-18 14:46:53 +02:00
committed by Vadim Zeitlin
parent 262ed2c133
commit cb0625b9d9
3 changed files with 7 additions and 7 deletions

View File

@@ -159,17 +159,17 @@ void wxButtonCocoaImpl::GetLayoutInset(int &left , int &top , int &right, int &b
case NSRegularControlSize: case NSRegularControlSize:
left = right = 6; left = right = 6;
top = 4; top = 4;
bottom = 8; bottom = 7;
break; break;
case NSSmallControlSize: case NSSmallControlSize:
left = right = 5; left = right = 5;
top = 4; top = 4;
bottom = 7; bottom = 6;
break; break;
case NSMiniControlSize: case NSMiniControlSize:
left = right = 1; left = right = 1;
top = 0; top = 0;
bottom = 2; bottom = 1;
break; break;
} }
} }

View File

@@ -81,12 +81,12 @@ public:
case NSRegularControlSize: case NSRegularControlSize:
left = right = 3; left = right = 3;
top = 2; top = 2;
bottom = 4; bottom = 3;
break; break;
case NSSmallControlSize: case NSSmallControlSize:
left = right = 3; left = right = 3;
top = 1; top = 1;
bottom = 4; bottom = 3;
break; break;
case NSMiniControlSize: case NSMiniControlSize:
left = 1; left = 1;

View File

@@ -81,13 +81,13 @@ public :
case NSRegularControlSize: case NSRegularControlSize:
left = right = 2; left = right = 2;
top = 0; top = 0;
bottom = 4; bottom = 3;
break; break;
case NSMiniControlSize: case NSMiniControlSize:
case NSSmallControlSize: case NSSmallControlSize:
left = right = 1; left = right = 1;
top = 0; top = 0;
bottom = 2; bottom = 1;
break; break;
} }
} }