Skip to content

Commit

Permalink
Fix Margin Width for RTL languages
Browse files Browse the repository at this point in the history
  • Loading branch information
Noufst authored Jul 13, 2018
1 parent ddfd531 commit 5ade114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DLRadioButton/DLRadioButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ - (void)drawButton {
UIEdgeInsetsMake(0, -self.icon.size.width, 0, marginWidth + self.icon.size.width);
} else {
if (isRightToLeftLayout) {
self.imageEdgeInsets = UIEdgeInsetsMake(0, marginWidth, 0, 0);
self.titleEdgeInsets = UIEdgeInsetsMake(0, 0, 0, marginWidth);
} else {
self.titleEdgeInsets = UIEdgeInsetsMake(0, marginWidth, 0, 0);
}
Expand Down

0 comments on commit 5ade114

Please sign in to comment.