Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 9d614f0

Browse files
MortimerGorokeianhzo
authored andcommitted
Fix navigation bar notification alignment (#2369)
1 parent 7c4caf4 commit 9d614f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/NavigationBarWidget.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,9 +1251,9 @@ private void showNotification(UIButton button, int stringRes) {
12511251
mPopUpNotification = new TooltipWidget(getContext(), R.layout.library_notification);
12521252
mPopUpNotification.getPlacement().parentHandle = getHandle();
12531253
mPopUpNotification.getPlacement().anchorY = 0.0f;
1254-
mPopUpNotification.getPlacement().translationX = (button.getPaddingLeft() + offsetViewBounds.left + button.getWidth() / 2.0f) * ratio;
1254+
mPopUpNotification.getPlacement().translationX = (getPaddingLeft() + offsetViewBounds.left + button.getWidth() / 2.0f) * ratio;
12551255
mPopUpNotification.getPlacement().translationY = ((offsetViewBounds.top - 60) * ratio);
1256-
mPopUpNotification.getPlacement().translationZ = 25.0f;
1256+
mPopUpNotification.getPlacement().translationZ = 1.0f;
12571257
mPopUpNotification.getPlacement().density = WidgetPlacement.floatDimension(getContext(), R.dimen.tooltip_default_density);
12581258
mPopUpNotification.setText(stringRes);
12591259
mPopUpNotification.setCurvedMode(true);

0 commit comments

Comments
 (0)