File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -526,17 +526,29 @@ - (BOOL)isUtilityButtonsHidden {
526526
527527- (CGFloat)leftUtilityButtonsWidth
528528{
529- return CGRectGetWidth (self.leftUtilityButtonsView .frame );
529+ #if CGFLOAT_IS_DOUBLE
530+ return round (CGRectGetWidth (self.leftUtilityButtonsView .frame ));
531+ #else
532+ return roundf (CGRectGetWidth (self.leftUtilityButtonsView .frame ));
533+ #endif
530534}
531535
532536- (CGFloat)rightUtilityButtonsWidth
533537{
534- return CGRectGetWidth (self.rightUtilityButtonsView .frame ) + self.additionalRightPadding ;
538+ #if CGFLOAT_IS_DOUBLE
539+ return round (CGRectGetWidth (self.rightUtilityButtonsView .frame ) + self.additionalRightPadding );
540+ #else
541+ return roundf (CGRectGetWidth (self.rightUtilityButtonsView .frame ) + self.additionalRightPadding );
542+ #endif
535543}
536544
537545- (CGFloat)utilityButtonsPadding
538546{
539- return [self leftUtilityButtonsWidth ] + [self rightUtilityButtonsWidth ];
547+ #if CGFLOAT_IS_DOUBLE
548+ return round ([self leftUtilityButtonsWidth ] + [self rightUtilityButtonsWidth ]);
549+ #else
550+ return roundf ([self leftUtilityButtonsWidth ] + [self rightUtilityButtonsWidth ]);
551+ #endif
540552}
541553
542554- (CGPoint)contentOffsetForCellState : (SWCellState)state
You can’t perform that action at this time.
0 commit comments