Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Commit 7ccea10

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

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)