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

Commit

Permalink
Fix fullscreen video control panel z-order issues (#1767)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and keianhzo committed Sep 5, 2019
1 parent b0f2195 commit c639a36
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected void initializeWidgetPlacement(WidgetPlacement aPlacement) {
aPlacement.anchorX = 0.0f;
aPlacement.anchorY = 0.0f;
aPlacement.translationY = WidgetPlacement.dpDimension(getContext(), R.dimen.video_projection_menu_translation_y);
aPlacement.translationZ = 2.0f;
aPlacement.translationZ = 30.0f;
}

public void setParentWidget(UIWidget aParent) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,8 @@ public void run() {
mLibraryNotification.getPlacement().parentHandle = getHandle();
mLibraryNotification.getPlacement().anchorY = 0.0f;
mLibraryNotification.getPlacement().translationX = (offsetViewBounds.left + mBookmarksButton.getWidth() / 2.0f) * ratio;
mLibraryNotification.getPlacement().translationY = ((offsetViewBounds.top - 60) * ratio);
mLibraryNotification.getPlacement().translationZ = 25.0f;
mLibraryNotification.getPlacement().translationY = ((offsetViewBounds.top - 66) * ratio);
mLibraryNotification.getPlacement().translationZ = 38.0f;
mLibraryNotification.getPlacement().density = 3.0f;
mLibraryNotification.setText(R.string.bookmarks_saved_notification);
mLibraryNotification.setCurvedMode(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected void initializeWidgetPlacement(WidgetPlacement aPlacement) {
aPlacement.anchorX = 0.0f;
aPlacement.anchorY = 0.0f;
aPlacement.translationY = WidgetPlacement.dpDimension(getContext(), R.dimen.video_projection_menu_translation_y);
aPlacement.translationZ = 2.0f;
aPlacement.translationZ = 30.0f;
}

public void setParentWidget(UIWidget aParent) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/dimen.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@

<!-- Video Projection Menu -->
<dimen name="video_projection_menu_width">330dp</dimen>
<dimen name="video_projection_menu_translation_y">7dp</dimen>
<dimen name="video_projection_menu_translation_y">15dp</dimen>

<!-- Brightness Menu -->
<dimen name="brightness_menu_width">150dp</dimen>
Expand Down

0 comments on commit c639a36

Please sign in to comment.