Skip to content

Commit 5faf395

Browse files
committed
iOS 11 layout bug workaround. See slackhq slackhq#604.
1 parent ab6920e commit 5faf395

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Source/SLKTextInputbar.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,16 @@ - (void)layoutIfNeeded
117117
[super layoutIfNeeded];
118118
}
119119

120+
// Compensate for layout bug in iOS 11 Beta 2
121+
- (void)layoutSubviews
122+
{
123+
[super layoutSubviews];
124+
125+
[self bringSubviewToFront:self.textView];
126+
[self bringSubviewToFront:self.rightButton];
127+
[self bringSubviewToFront:self.leftButton];
128+
}
129+
120130
- (CGSize)intrinsicContentSize
121131
{
122132
return CGSizeMake(UIViewNoIntrinsicMetric, [self minimumInputbarHeight]);

0 commit comments

Comments
 (0)