Skip to content

Commit

Permalink
fixed the flickering bug by removing CGRectIntegral which was not beh…
Browse files Browse the repository at this point in the history
…aving deterministically
  • Loading branch information
Bogi committed May 14, 2021
1 parent b4b340f commit 04ba76d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ - (CGRect)textRectForBounds:(CGRect)bounds
if ([self.text length] || self.keepBaseline) {
rect = [self insetRectForBounds:rect];
}
return CGRectIntegral(rect);
return rect;
}

- (CGRect)editingRectForBounds:(CGRect)bounds
Expand All @@ -292,7 +292,7 @@ - (CGRect)editingRectForBounds:(CGRect)bounds
if ([self.text length] || self.keepBaseline) {
rect = [self insetRectForBounds:rect];
}
return CGRectIntegral(rect);
return rect;
}

- (CGRect)insetRectForBounds:(CGRect)rect
Expand All @@ -314,7 +314,7 @@ - (CGRect)clearButtonRectForBounds:(CGRect)bounds
rect = CGRectMake(rect.origin.x, rect.origin.y + topInset / 2.0f, rect.size.width, rect.size.height);
}
}
return CGRectIntegral(rect);
return rect;
}

- (CGRect)leftViewRectForBounds:(CGRect)bounds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ - (CGRect)textRect
rect.origin.y += self.textContainerInset.top;
}

return CGRectIntegral(rect);
return rect;
}

- (void)setFloatingLabelFont:(UIFont *)floatingLabelFont
Expand Down

0 comments on commit 04ba76d

Please sign in to comment.