mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-23 06:55:52 +00:00
Cleanup, documented hacks
This commit is contained in:
1 parent
20c7ed0034
commit
f7d67e4b87
1 file changed
+4
-2
@@ -34,8 +34,7 @@
|
||||
|
||||
if (self)
|
||||
{
|
||||
var cell = [aCoder decodeObjectForKey:@"NSCell"],
|
||||
font = [cell font];
|
||||
var cell = [aCoder decodeObjectForKey:@"NSCell"];
|
||||
|
||||
[self sendActionOn:CPKeyUpMask | CPKeyDownMask];
|
||||
|
||||
@@ -71,7 +70,10 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
// Adjust frame for difference between layout->bounds rect in IB
|
||||
[self setFrame:CGRectInset(frame, 3.0, 0.0)];
|
||||
|
||||
// Hack to get baselines to align
|
||||
[self setFrameOrigin:CGPointMake(frame.origin.x, frame.origin.y - 1.0)];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user