mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-30 03:48:49 +00:00
Merge pull request #1912 from Dogild/CornerView
Fixed: CornerView in TableViews from cibs are not sized well
This commit is contained in:
commit
21301cae21
1 file changed
+16
-2
@@ -22,6 +22,13 @@
|
||||
|
||||
@import <AppKit/CPTableHeaderView.j>
|
||||
@import <AppKit/_CPCornerView.j>
|
||||
@import <AppKit/CPScroller.j>
|
||||
@import <AppKit/CPTableView.j>
|
||||
|
||||
@class Nib2Cib
|
||||
|
||||
@global CPThemeStateVertical
|
||||
@global CPThemeStateScrollViewLegacy
|
||||
|
||||
@implementation _CPCornerView (NSCoding)
|
||||
|
||||
@@ -39,10 +46,17 @@
|
||||
- (id)initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
self = [super NS_initWithCoder:aCoder];
|
||||
|
||||
if (self)
|
||||
{
|
||||
_frame.size.height = 23.0;
|
||||
_bounds.size.height = 23.0;
|
||||
var theme = [Nib2Cib defaultTheme],
|
||||
height = [theme valueForAttributeWithName:@"default-row-height" forClass:[CPTableView class]],
|
||||
width = [theme valueForAttributeWithName:@"scroller-width" inState:CPThemeStateVertical | CPThemeStateScrollViewLegacy forClass:[CPScroller class]];
|
||||
|
||||
_frame.size.height = height;
|
||||
_bounds.size.height = height;
|
||||
_frame.size.width = width;
|
||||
_bounds.size.width = width;
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
Reference in new issue
Block a user