Skip to content

Commit 6ed6b29

Browse files
committed
Fix rightButton margin is not correctly set when autoHideRightButton = NO
slackhq@dceedc7#diff-592522ed60e49c6ca08c23b1fa1ac14aR104 broke the behavior.
1 parent 97246be commit 6ed6b29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/SLKTextInputbar.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@ - (void)setAutoHideRightButton:(BOOL)hide
399399
_autoHideRightButton = hide;
400400

401401
self.rightButtonWC.constant = [self slk_appropriateRightButtonWidth];
402-
402+
self.rightMarginWC.constant = [self slk_appropriateRightButtonMargin];
403+
403404
[self layoutIfNeeded];
404405
}
405406

0 commit comments

Comments
 (0)