Skip to content

Commit dc75191

Browse files
committed
Fixes bug #2 - Check box will be hidden If on property is true by default. #2
1 parent fccab6e commit dc75191

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/BEMCheckBox.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ - (void)drawRect:(CGRect)rect {
160160
*/
161161
- (void)drawEntireCheckBox {
162162
if (!self.hideBox) {
163-
if (!self.offBoxLayer && self.pathManager.size != 0) {
163+
if (!self.offBoxLayer || CGPathGetBoundingBox(self.offBoxLayer.path).size.height == 0.0) {
164164
[self drawOffBox];
165165
}
166166
if (self.on) {

0 commit comments

Comments
 (0)