mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
nib2cib NSTableColumn dataCell's alignment property
This commit is contained in:
@@ -49,14 +49,17 @@
|
||||
[_dataView setFont:font];
|
||||
[_dataView setValue:selectedFont forThemeAttribute:@"font" inState:CPThemeStateSelectedDataView];
|
||||
|
||||
[_dataView setLineBreakMode:CPLineBreakByTruncatingTail];
|
||||
[_dataView setLineBreakMode:CPLineBreakByTruncatingTail];
|
||||
[_dataView setValue:[dataViewCell alignment] forThemeAttribute:@"alignment"];
|
||||
[_dataView setValue:CPCenterVerticalTextAlignment forThemeAttribute:@"vertical-alignment"];
|
||||
[_dataView setValue:CGInsetMake(0.0, 0.0, 0.0, 5.0) forThemeAttribute:@"content-inset"];
|
||||
[_dataView setValue:CGInsetMake(0.0, 5.0, 0.0, 5.0) forThemeAttribute:@"content-inset"];
|
||||
|
||||
var headerCell = [aCoder decodeObjectForKey:@"NSHeaderCell"],
|
||||
headerView = [[_CPTableColumnHeaderView alloc] initWithFrame:CPRectMakeZero()];
|
||||
|
||||
[headerView setStringValue:[headerCell objectValue]];
|
||||
[headerView setValue:[dataViewCell alignment] forThemeAttribute:@"text-alignment"];
|
||||
|
||||
[self setHeaderView:headerView];
|
||||
|
||||
_width = [aCoder decodeFloatForKey:@"NSWidth"];
|
||||
|
||||
Reference in New Issue
Block a user