Fixed bug with indicator

This commit is contained in:
Alexandre Wilhelm committed 2013-01-09 16:02:24 -08:00
1 parent 5e1c6ae30d
commit 68d4b9d2cd
1 file changed
+5 -5
+5 -5
View File
@@ -27,7 +27,7 @@
{
unsigned _styleMask;
BOOL _hasResizeIndacator;
BOOL _hasResizeIndicator;
CPImageView _resizeIndicator;
CGSize _resizeIndicatorOffset;
@@ -60,8 +60,8 @@
+ (id)themeAttributes
{
return [CPDictionary dictionaryWithObjects:[CGInsetMakeZero(), 5, [CPColor clearColor], CGSizeMakeZero(), [CPNull null], [CPColor blackColor], [CPNull null],[CPNull null], [CPNull null], [CPNull null], [CPNull null] , [CPColor blackColor], [CPFont systemFontOfSize:CPFontCurrentSystemSize], [CPNull null], _CGSizeMakeZero(), CPCenterTextAlignment, CPLineBreakByTruncatingTail, CPTopVerticalTextAlignment]
forKeys:[@"shadow-inset", @"shadow-distance", @"window-shadow-color",@"size-indicator", @"resize-indicator", @"attached-sheet-shadow-color", @"close-image-origin",@"close-image-size",@"close-image", @"close-active-image", @"bezel-color",@"title-text-color", @"title-font", @"title-text-shadow-color", @"title-text-shadow-offset", @"title-alignment", @"title-line-break-mode", @"title-vertical-alignment"]];
return [CPDictionary dictionaryWithObjects:[25, CGInsetMakeZero(), 5, [CPColor clearColor], CGSizeMakeZero(), [CPNull null], [CPColor blackColor], [CPNull null],[CPNull null], [CPNull null], [CPNull null], [CPNull null] , [CPColor blackColor], [CPFont systemFontOfSize:CPFontCurrentSystemSize], [CPNull null], _CGSizeMakeZero(), CPCenterTextAlignment, CPLineBreakByTruncatingTail, CPTopVerticalTextAlignment]
forKeys:[@"title-bar-height", @"shadow-inset", @"shadow-distance", @"window-shadow-color",@"size-indicator", @"resize-indicator", @"attached-sheet-shadow-color", @"close-image-origin",@"close-image-size",@"close-image", @"close-active-image", @"bezel-color",@"title-text-color", @"title-font", @"title-text-shadow-color", @"title-text-shadow-offset", @"title-alignment", @"title-line-break-mode", @"title-vertical-alignment"]];
}
- (CGRect)contentRectForFrameRect:(CGRect)aFrameRect
@@ -241,7 +241,7 @@
- (void)setShowsResizeIndicator:(BOOL)shouldShowResizeIndicator
{
_hasResizeIndacator = shouldShowResizeIndicator;
_hasResizeIndicator = shouldShowResizeIndicator;
if (shouldShowResizeIndicator)
{
@@ -440,7 +440,7 @@
[_sheetShadowView setBackgroundColor:[self valueForThemeAttribute:@"attached-sheet-shadow-color"]];
if(_hasResizeIndacator)
if(_hasResizeIndicator)
{
var size = [self valueForThemeAttribute:@"size-indicator"],
boundsSize = [self frame].size;