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 committed 2014-08-05 17:34:58 -07:00
1 parent 12c427a9cf
commit 5feac3a7ff
39 files changed
+182 -63

No files matched your search

+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]];