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

Commit

Permalink
Fix navigation bar notification alignment (#2369)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and keianhzo committed Nov 26, 2019
1 parent 7c4caf4 commit 9d614f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9d614f0

Please sign in to comment.