Skip to content

Commit cade6bb

Browse files
tarigancanadzenbot
authored andcommitted
Check textInputBar hidden or not when update the constraints (slackhq#661)
* check textInputBar.isHidden for updateviewconstraints * use textInputbar.minimumInputbarHeight
1 parent 2761b4e commit cade6bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/SLKTextViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ - (void)setTextInputbarHidden:(BOOL)hidden animated:(BOOL)animated
912912
}
913913

914914
__weak typeof(self) weakSelf = self;
915-
915+
916916
void (^animations)(void) = ^void(){
917917

918918
weakSelf.textInputbarHC.constant = hidden ? 0.0 : weakSelf.textInputbar.appropriateHeight;
@@ -2276,7 +2276,7 @@ - (void)slk_setupViewConstraints
22762276

22772277
- (void)slk_updateViewConstraints
22782278
{
2279-
self.textInputbarHC.constant = self.textInputbar.minimumInputbarHeight;
2279+
self.textInputbarHC.constant = self.textInputbar.hidden ? 0.0 : self.textInputbar.minimumInputbarHeight;
22802280
self.scrollViewHC.constant = [self slk_appropriateScrollViewHeight];
22812281
self.keyboardHC.constant = [self slk_appropriateKeyboardHeightFromRect:CGRectNull];
22822282

0 commit comments

Comments
 (0)