Skip to content

Commit 7ccea10

Browse files
author
Ignacio Romero Zurbuchen
committed
Merge pull request slackhq#295 from ikesyo/fix-rightbutton-margin
Fix rightButton margin is not correctly set when autoHideRightButton …
2 parents 97246be + 6ed6b29 commit 7ccea10

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)