Skip to content

Commit

Permalink
Fixes bug #2 - Check box will be hidden If on property is true by def…
Browse files Browse the repository at this point in the history
…ault. #2
  • Loading branch information
Boris-Em committed Oct 22, 2015
1 parent fccab6e commit dc75191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/BEMCheckBox.m
Expand Up @@ -160,7 +160,7 @@ - (void)drawRect:(CGRect)rect {
*/
- (void)drawEntireCheckBox {
if (!self.hideBox) {
if (!self.offBoxLayer && self.pathManager.size != 0) {
if (!self.offBoxLayer || CGPathGetBoundingBox(self.offBoxLayer.path).size.height == 0.0) {
[self drawOffBox];
}
if (self.on) {
Expand Down

0 comments on commit dc75191

Please sign in to comment.