Permalink
Browse files

Adjust size of spinner progress indicators properly in nib2cib.

  • Loading branch information...
1 parent 5097030 commit b7dcd24e110a3d5081c02c466d4fcae715714466 @aljungberg aljungberg committed Mar 16, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 Tools/nib2cib/NSProgressIndicator.j
@@ -48,7 +48,14 @@ var NSProgressIndicatorSpinningFlag = 1 << 12;
// Readjust the height of the control to the correct size.
var currentFrameSize = [self frameSize];
- currentFrameSize.height = 15.0;
+ if (_style == CPProgressIndicatorSpinningStyle)
+ {
+ currentFrameSize.height = 64.0;
+ currentFrameSize.width = 64.0;
+ }
+ else
+ currentFrameSize.height = 15.0;
+
[self setFrameSize:currentFrameSize];
// update graphics

0 comments on commit b7dcd24

Please sign in to comment.