Skip to content

Commit

Permalink
Merge pull request DavydLiu#143 from Noufst/master
Browse files Browse the repository at this point in the history
Fix Margin Width for RTL languages
  • Loading branch information
DavydLiu authored Nov 29, 2018
2 parents 9a1ad3d + 5ade114 commit 6dbc907
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 @@ -99,7 +99,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 6dbc907

Please sign in to comment.