Skip to content

Commit 9844e25

Browse files
author
Ignacio Romero Zurbuchen
committed
Merge pull request slackhq#408 from slackhq/font-size-fix
Fixes the text input bar not updating its height after setting a different font size
2 parents fc2fb45 + 1a33fa2 commit 9844e25

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/SLKTextViewController.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,7 +1466,7 @@ - (void)slk_didPostSLKKeyboardNotification:(NSNotification *)notification
14661466
- (void)slk_willChangeTextViewText:(NSNotification *)notification
14671467
{
14681468
// Skips this it's not the expected textView.
1469-
if (![notification.object isEqual:self.textView] || !self.textView.window) {
1469+
if (![notification.object isEqual:self.textView]) {
14701470
return;
14711471
}
14721472

@@ -1476,7 +1476,7 @@ - (void)slk_willChangeTextViewText:(NSNotification *)notification
14761476
- (void)slk_didChangeTextViewText:(NSNotification *)notification
14771477
{
14781478
// Skips this it's not the expected textView.
1479-
if (![notification.object isEqual:self.textView] || !self.textView.window) {
1479+
if (![notification.object isEqual:self.textView]) {
14801480
return;
14811481
}
14821482

@@ -1492,7 +1492,7 @@ - (void)slk_didChangeTextViewText:(NSNotification *)notification
14921492
- (void)slk_didChangeTextViewContentSize:(NSNotification *)notification
14931493
{
14941494
// Skips this it's not the expected textView.
1495-
if (![notification.object isEqual:self.textView] || !self.textView.window) {
1495+
if (![notification.object isEqual:self.textView]) {
14961496
return;
14971497
}
14981498

@@ -1503,7 +1503,7 @@ - (void)slk_didChangeTextViewContentSize:(NSNotification *)notification
15031503
- (void)slk_didChangeTextViewSelectedRange:(NSNotification *)notification
15041504
{
15051505
// Skips this it's not the expected textView.
1506-
if (![notification.object isEqual:self.textView] || !self.textView.window) {
1506+
if (![notification.object isEqual:self.textView]) {
15071507
return;
15081508
}
15091509

0 commit comments

Comments
 (0)