From 3328db270c4dd5cd4ec3605895da920a564c2997 Mon Sep 17 00:00:00 2001 From: Imanol Fernandez Date: Mon, 25 Nov 2019 18:12:12 +0100 Subject: [PATCH] Fix navigation bar notification alignment --- .../org/mozilla/vrbrowser/ui/widgets/NavigationBarWidget.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/NavigationBarWidget.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/NavigationBarWidget.java index 22730c93e..5eabb3894 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/NavigationBarWidget.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/NavigationBarWidget.java @@ -1251,9 +1251,9 @@ private void showNotification(UIButton button, int stringRes) { mPopUpNotification = new TooltipWidget(getContext(), R.layout.library_notification); mPopUpNotification.getPlacement().parentHandle = getHandle(); mPopUpNotification.getPlacement().anchorY = 0.0f; - mPopUpNotification.getPlacement().translationX = (button.getPaddingLeft() + offsetViewBounds.left + button.getWidth() / 2.0f) * ratio; + mPopUpNotification.getPlacement().translationX = (getPaddingLeft() + offsetViewBounds.left + button.getWidth() / 2.0f) * ratio; mPopUpNotification.getPlacement().translationY = ((offsetViewBounds.top - 60) * ratio); - mPopUpNotification.getPlacement().translationZ = 25.0f; + mPopUpNotification.getPlacement().translationZ = 1.0f; mPopUpNotification.getPlacement().density = WidgetPlacement.floatDimension(getContext(), R.dimen.tooltip_default_density); mPopUpNotification.setText(stringRes); mPopUpNotification.setCurvedMode(true);