Browse Source

Fix top bar title positioning. (#3168)

Fixes #3138.
Rafael Viotti 6 years ago
parent
commit
a3e42d446e

+ 2
- 0
lib/android/app/src/main/java/com/reactnativenavigation/views/titlebar/TitleBar.java View File

@@ -108,6 +108,8 @@ public class TitleBar extends Toolbar {
108 108
         view.post(() -> {
109 109
             if (alignment == Alignment.Center) {
110 110
                 view.setX((getWidth() - view.getWidth()) / 2);
111
+            } else if (leftButtonController != null) {
112
+                view.setX(getContentInsetStartWithNavigation());
111 113
             } else {
112 114
                 view.setX(UiUtils.dpToPx(getContext(), 16));
113 115
             }