Skip to content
This repository was archived by the owner on Aug 24, 2019. It is now read-only.

Commit 7f90835

Browse files
author
Ivan Kovalisko
committed
Set contentMode to redraw on bounds changes
1 parent beb336a commit 7f90835

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

SAMTextView/SAMTextView.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ - (CGRect)placeholderRectForBounds:(CGRect)bounds {
155155

156156
- (void)initialize {
157157
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(textChanged:) name:UITextViewTextDidChangeNotification object:self];
158+
self.contentMode = UIViewContentModeRedraw;
158159
}
159160

160161

0 commit comments

Comments
 (0)