Added class method for the title height

This commit is contained in:
Alexandre Wilhelm committed 2013-01-09 16:01:51 -08:00
1 parent e1ba234a76
commit 5e1c6ae30d
1 file changed
+2 -3
+2 -3
View File
@@ -22,8 +22,6 @@
@import "_CPWindowView.j"
var STANDARD_TITLEBAR_HEIGHT = 25.0;
@implementation _CPTitleableWindowView : _CPWindowView
{
CPTextField _titleField;
@@ -31,7 +29,8 @@ var STANDARD_TITLEBAR_HEIGHT = 25.0;
+ (int)titleBarHeight
{
return STANDARD_TITLEBAR_HEIGHT;
// Alloc a new class to get a theme attribute
return [[[self class] new] valueForThemeAttribute:@"title-bar-height"];
}
+ (CGRect)contentRectForFrameRect:(CGRect)aFrameRect