mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-10 04:37:11 +00:00
Fixed default height in tableheader for Nib2Cib.
This commit is contained in:
committed by
Francisco Ryan Tolmasky I
parent
d47cbc4453
commit
851632c2d5
File diff suppressed because one or more lines are too long
@@ -32,7 +32,10 @@
|
||||
|
||||
// change the default height
|
||||
if (_bounds.size.height === 17)
|
||||
{
|
||||
_bounds.size.height = 23;
|
||||
_frame.size.height = 23;
|
||||
}
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
@@ -41,6 +41,9 @@
|
||||
// Convert xib default to cib default
|
||||
if (_rowHeight == 17)
|
||||
_rowHeight = 23;
|
||||
|
||||
if ([_gridColor isEqual:[CPColor colorWithRed:127.0 / 255.0 green:127.0 / 255.0 blue:127.0 / 255.0 alpha:1.0]])
|
||||
_gridColor = [CPColor colorWithRed:229.0 / 255.0 green:229.0 / 255.0 blue:229.0 / 255.0 alpha:1.0];
|
||||
|
||||
_headerView = [aCoder decodeObjectForKey:@"NSHeaderView"];
|
||||
_cornerView = [aCoder decodeObjectForKey:@"NSCornerView"];
|
||||
|
||||
@@ -37,7 +37,16 @@
|
||||
|
||||
- (id)initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
return [self NS_initWithCoder:aCoder];
|
||||
self = [super NS_initWithCoder:aCoder];
|
||||
if (self)
|
||||
{
|
||||
[self setBackgroundColor:[CPColor colorWithPatternImage:CPAppKitImage("tableview-headerview.png", CGSizeMake(1.0, 23.0))]];
|
||||
|
||||
_frame.size.height = 23.0;
|
||||
_bounds.size.height = 23.0;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (Class)classForKeyedArchiver
|
||||
|
||||
Reference in New Issue
Block a user