Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

优化 NavigationBar 在标题文案不居中场景下的表现 #310

Closed
wants to merge 2 commits into from

Conversation

Alexorz
Copy link

@Alexorz Alexorz commented Oct 19, 2018

NavigationBar 目前的版本对居中标题文案较友好,但对于标题想居左的 APP 则有个问题:

如下图,rightView 有内容时,标题左侧也会留出多余的相等空间

image

下图为本次 pull request 改造后的效果,居左的标题左侧不再有多余空间

image

改造后,「标题左右留出相等空间」的逻辑,现在仅在「标题居中」的情况下生效。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant