allow using regular, small and mini sizes from xCode and from code using setControlSize method. Available on CPTextField, CPStepper, CPDatePicker only for the moment

This commit is contained in:
Christophe Serafin
2014-08-05 17:34:58 -07:00
parent 12c427a9cf
commit 5feac3a7ff
39 changed files with 182 additions and 63 deletions
+1 -2
View File
@@ -193,7 +193,6 @@ var CPControlBlackColor = [CPColor blackColor];
{
_sendActionOn = CPLeftMouseUpMask;
_trackingMouseDownFlags = 0;
_controlSize = CPRegularControlSize;
}
return self;
@@ -213,7 +212,7 @@ var CPControlBlackColor = [CPColor blackColor];
*/
- (void)setControlSize:(CPControlSize)aControlSize
{
if (_controlSize == aControlSize)
if (_controlSize === aControlSize)
return;
[self unsetThemeState:[self controlSizeThemeState]];