mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-06 04:35:32 +00:00
Added class method for the title height
This commit is contained in:
1 parent
e1ba234a76
commit
5e1c6ae30d
1 file changed
+2
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user