Skip to content

Commit 91640fa

Browse files
committed
Fix truncated text on iOS 11
Fixes #12
1 parent 803e7cb commit 91640fa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

MaterialTextField/MFTextField.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,7 @@ - (void)setAttributedPlaceholder:(NSAttributedString *)attributedPlaceholder
216216

217217
- (CGRect)textRect
218218
{
219-
if (CGRectEqualToRect(_textRect, CGRectZero)) {
220-
_textRect = [self textRectForBounds:self.bounds];
221-
}
219+
_textRect = [self textRectForBounds:self.bounds];
222220
return _textRect;
223221
}
224222

0 commit comments

Comments
 (0)