diff --git a/Tools/nib2cib/_NSCornerView.j b/Tools/nib2cib/_NSCornerView.j index c8944c9e3..83e667d50 100644 --- a/Tools/nib2cib/_NSCornerView.j +++ b/Tools/nib2cib/_NSCornerView.j @@ -22,6 +22,13 @@ @import @import +@import +@import + +@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;