Skip to content

Instantly share code, notes, and snippets.

@boucher
Created April 8, 2010 02:44
Show Gist options
  • Save boucher/359718 to your computer and use it in GitHub Desktop.
Save boucher/359718 to your computer and use it in GitHub Desktop.
diff --git a/AppKit/CPWindow/_CPBorderlessBridgeWindowView.j b/AppKit/CPWindow/_CPBorderlessBridgeWindowView.j
index c86dd97..0b64080 100644
--- a/AppKit/CPWindow/_CPBorderlessBridgeWindowView.j
+++ b/AppKit/CPWindow/_CPBorderlessBridgeWindowView.j
@@ -73,7 +73,7 @@ var _CPToolbarViewBackgroundColor = nil;
var frame = CGRectMakeZero();
- frame.origin = CGPointMakeCopy([self toolbarOffset]);
+ frame.origin = CGSizeMakeCopy([self toolbarOffset]);
frame.size = [_toolbarView frame].size;
[_toolbarBackgroundView setFrame:frame];
diff --git a/AppKit/CPWindow/_CPWindowView.j b/AppKit/CPWindow/_CPWindowView.j
index c71770b..c73a2c6 100644
--- a/AppKit/CPWindow/_CPWindowView.j
+++ b/AppKit/CPWindow/_CPWindowView.j
@@ -36,6 +36,7 @@ var _CPWindowViewResizeIndicatorImage = nil;
CGSize _resizeIndicatorOffset;
CPView _toolbarView;
+ CGSize _toolbarOffset;
// BOOL _isAnimatingToolbar;
@@ -80,8 +81,8 @@ var _CPWindowViewResizeIndicatorImage = nil;
if (self)
{
_styleMask = aStyleMask;
- _resizeIndicatorOffset = CGSizeMake(0.0, 0.0);
- _toolbarOffset = CGSizeMake(0.0, 0.0);
+ _resizeIndicatorOffset = CGSizeMakeZero();
+ _toolbarOffset = CGSizeMakeZero();
}
return self;
@@ -269,7 +270,7 @@ var _CPWindowViewResizeIndicatorImage = nil;
- (CGSize)toolbarOffset
{
- return CGSizeMakeZero();
+ return _toolbarOffset;
}
- (CPColor)toolbarLabelColor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment