mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-26 08:25:52 +00:00
Merge branch 'refs/heads/slevenbits-nsbox-custom-fix'
This commit is contained in:
commit
80170cfa03
1 file changed
+3
-1
@@ -42,7 +42,9 @@
|
||||
// small hack to position the box pixel perfect
|
||||
var frame = [self frame];
|
||||
|
||||
if (_boxType !== CPBoxSeparator)
|
||||
// The primary and secondary boxes have a well-like look both in Cocoa and Cappuccino, but there
|
||||
// are some sizing differences. Regular custom boxes have no size differences.
|
||||
if (_boxType !== CPBoxSeparator && (_boxType === CPBoxPrimary || _boxType === CPBoxSecondary))
|
||||
{
|
||||
frame.origin.y += 4;
|
||||
frame.origin.x += 4;
|
||||
|
||||
Reference in new issue
Block a user