Skip to content

Commit

Permalink
fix: 修复UINavigationBar contentView 的 directionalLayoutMargins.leading…
Browse files Browse the repository at this point in the history
…计算问题
  • Loading branch information
evanzhou89 committed Apr 6, 2020
1 parent 413483a commit 28852e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QMUIKit/QMUIComponents/QMUIButton/QMUINavigationButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ + (void)load {
// change insets
if (navBar) {
NSDirectionalEdgeInsets value = originResult;
value.leading = value.trailing - (navBar.qmui_customizingBackBarButtonItem ? 8 : 0);
value.leading -= (navBar.qmui_customizingBackBarButtonItem ? 8 : 0);
return value;
}

Expand Down

0 comments on commit 28852e5

Please sign in to comment.