Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Display menu builder menu from bottom #3211

Closed
sblatz opened this issue May 31, 2019 · 12 comments
Closed

Display menu builder menu from bottom #3211

sblatz opened this issue May 31, 2019 · 12 comments
Assignees
Labels
🐉 Fenix Feature needed for Fenix <menu> Component: concept-menu, browser-menu, browser-menu2 P1
Milestone

Comments

@sblatz
Copy link
Contributor

sblatz commented May 31, 2019

For this fenix issue.

We'd like to display the menu builder from the bottom so our most critical menu items are shown even when the whole menu can't be.

┆Issue is synchronized with this Jira Task

@sblatz sblatz added <menu> Component: concept-menu, browser-menu, browser-menu2 Blocking Fenix 🐉 Fenix Feature needed for Fenix labels May 31, 2019
@ghost ghost added MVP Blocker and removed Blocking Fenix labels May 31, 2019
@Amejia481
Copy link
Contributor

@sblatz is this issue the same as #2916?

@sblatz
Copy link
Contributor Author

sblatz commented Jun 4, 2019

@Amejia481 No, for this issue we're talking about starting the recylcerview of the menu builder from the bottom. For example, if my device is really short, we want to display C before B in the following menu:
A
B
C

@Amejia481
Copy link
Contributor

@sblatz Do you want to mark some BrowserMenuItem as important to let us know that they should be visible always even though that means moving them up in the list order?

@Amejia481
Copy link
Contributor

Could scroll until the important items are visible could be enough?

@bifleming
Copy link

@vesta0 ^^

@vesta0
Copy link
Collaborator

vesta0 commented Jun 6, 2019

@Amejia481

Current state:
Screenshot_20190606-170223

Ideal state (so back/forward/refresh is visible):
Screenshot_20190606-170230

@vesta0
Copy link
Collaborator

vesta0 commented Jun 6, 2019

Ideally, we also want to have an arrow or something indicating that user can scroll up for more options. @mheubusch for post-mvp.

@pocmo
Copy link
Contributor

pocmo commented Jun 7, 2019

@Amejia481 I assume this translates to: For preferred UP direction we scroll all the way down and for preferred DOWN direction we scroll up all the way (or do nothing because that's the default)

@Amejia481
Copy link
Contributor

Amejia481 commented Jun 7, 2019

Just to confirm: @pocmo are you suggesting:

  1. Just using the actual orientation property to do a scroll in the opposite direction (UP -> Scroll down and DOWN -> Scroll up)

  2. Adding a new property for the consumer to indicate which portion of the menu should be always visible when showing.

If option 1 is the preferred. Is this mixing two concepts? The orientation of the menu and the direction that are we going to do scroll if there is not enough space to show all the items? Is this the expected behavior all cases outside of the toolbar menu use case?

@pocmo
Copy link
Contributor

pocmo commented Jun 7, 2019

I was suggesting (1), but yes, I primarily looked at the toolbar and the reference screenshots. For menus in a list like bookmarks that may not be the case and you may always want to show them top to bottom like we do right now. Good catch!

@Amejia481 Amejia481 self-assigned this Jun 7, 2019
Amejia481 added a commit to Amejia481/android-components that referenced this issue Jun 8, 2019
Amejia481 added a commit to Amejia481/android-components that referenced this issue Jun 8, 2019
Amejia481 added a commit to Amejia481/android-components that referenced this issue Jun 11, 2019
Amejia481 added a commit to Amejia481/android-components that referenced this issue Jun 11, 2019
@pocmo pocmo added this to the 1.0.0 milestone Jun 11, 2019
@Amejia481 Amejia481 reopened this Jun 13, 2019
@Amejia481
Copy link
Contributor

As mentioned on mozilla-mobile/fenix#2219 (comment) this is not working properly on Android 5 & 6 devices, let's take a look.

@vesta0
Copy link
Collaborator

vesta0 commented Jun 14, 2019

I am removing MVP blocker since it's only impacting Android 4 & 6.

@vesta0 vesta0 added P1 and removed MVP Blocker labels Jun 14, 2019
Amejia481 added a commit to Amejia481/android-components that referenced this issue Jun 14, 2019
Amejia481 added a commit to Amejia481/android-components that referenced this issue Jun 20, 2019
@pocmo pocmo modified the milestones: 1.0.0 🏔, 2.0.0 Jun 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐉 Fenix Feature needed for Fenix <menu> Component: concept-menu, browser-menu, browser-menu2 P1
Projects
None yet
Development

No branches or pull requests

5 participants