Adjust size of spinner progress indicators properly in nib2cib.

This commit is contained in:
Alexander Ljungberg committed 2012-03-16 18:36:09 +00:00
1 parent 5097030143
commit b7dcd24e11
1 file changed
+8 -1
+8 -1
View File
@@ -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