fenix icon indicating copy to clipboard operation
fenix copied to clipboard

Home overflow menus don't inflate up when towards bottom of the screen

Open sv-ohorvath opened this issue 7 years ago • 12 comments

Steps to reproduce

  1. Turn the device in landscape mode.
  2. Open a session's overflow menu.

Expected behavior

The menu is displayed above the fold.

Actual behavior

The menu is displayed under the fold, you have to pull it up to see it. Scrolling the page down doesn't work. Turning the device to portrait mode, the session title will disappear. 20190313_112142

Device information

  • Android device: Pixel (Android 9), Nexus 5(Android 6)
  • Fenix version: master build 3/13.

┆Issue is synchronized with this Jira Task

sv-ohorvath avatar Mar 13 '19 09:03 sv-ohorvath

Hey, just want to add more info about this bug. For me, on my device, it also removes the Archive button whenever I switch from portrait to landscape or vice versa

Potrait potrait

Landscape landscape

jatinkumarg avatar Mar 18 '19 02:03 jatinkumarg

We got rid of this menu view with introduction of the new Collections features but if you tap on the overflow menu now it still renders below the fold.

topotropic avatar May 02 '19 10:05 topotropic

@topotropic can you clarify what you mean?

I'm not able to reproduce this bug.

sblatz avatar May 15 '19 21:05 sblatz

See screenshot but I guess that's a rare case Screenshot (May 16, 2019 10:35:18 AM)

topotropic avatar May 16 '19 08:05 topotropic

This is actually blocked on https://github.com/mozilla-mobile/android-components/issues/2916.

@vesta0, @bifleming can we get that a-c ticket properly prioritized?

sblatz avatar May 31 '19 17:05 sblatz

@sblatz We could detect when the phone is in landscape and use if so pass an up orientation. Could this be an alternative? orientation = BrowserMenu.Orientation.UP

Screenshot_20190531-170302. Could this be an alternative?

Amejia481 avatar May 31 '19 21:05 Amejia481

This is not fixed yet. The menu is not entirely visible, it is scrollable though - please see the attached screenshot. Tested with the latest build 1,0,1924 (#11630619), with OnePlus 5T (Android 9), Motorola Nexus 6 (Android 7,1,1).

2019_06_12_15_49_37

lobontiumira avatar Jun 12 '19 12:06 lobontiumira

I think this is a different issue from the original one. This only happens after the menu is opened on portrait mode, and while is open the phone is switched to landscape mode.

Amejia481 avatar Jun 12 '19 13:06 Amejia481

Arturo, the same behavior is when opening that menu directly in landscape mode.

lobontiumira avatar Jun 12 '19 13:06 lobontiumira

I agree with @Amejia481 this seems like a separate issue. When I open the menu in landscape, it properly inflates upwards: demo

@softvision-miralobontiu are you not seeing the menu inflate upwards in landscape?

I can file the rotation issue as a separate ticket :)

sblatz avatar Jun 12 '19 15:06 sblatz

Follow up issue filed at https://github.com/mozilla-mobile/fenix/issues/3390

sblatz avatar Jun 12 '19 15:06 sblatz

@sblatz in landscape the menu inflates, as you've mentioned.

I will close this as fixed.

lobontiumira avatar Jun 13 '19 07:06 lobontiumira