Enterprise: Menu Component: Tooltip cut off on Mobile

Created on 16 Sep 2019  路  6Comments  路  Source: infor-design/enterprise

Describe the bug
Menu Button Component: On the sink page all the drop down menu's are cut off or not appearing

To Reproduce
Steps to reproduce the behavior:

  1. Go to url: http://4210-rc0-enterprise.demo.design.infor.com/components/toolbar/example-inside-form-tag.html
  2. Press down on the three button "More" icon
  3. The tooltip is cut off
  4. Please see screen shot attached.
  5. try both the menu on the header at the top and on the toolbar. they are both doing it

Expected behavior
The tooltip/drop down menu should appear when the user clicks on the more icon on their device

Version

  • ids-enterprise: [e.g. v4.20.0 ]

Screenshots
IMG_6899
IMG_6900

Platform

  • Device (if applicable) [e.g. iPhone XS 12]

Additional context
Add any other context about the problem here.
None

[3] mobile landmark type

All 6 comments

One idea for this is to make that popup use attachToBody setting. This may work?

Looks like here https://github.com/infor-design/enterprise/blob/master/src/components/toolbar/toolbar.js#L245

  1. we could add attachToBody: true to solve but only on condition of (env.os.name === 'ios' to be safer.

Per a chat with @pwpatton, I'd like to make a bit more of a comprehensive fix for this problem. It seems that there's really no better way to handle this than to just default attachToBody: true in an iOS setting. This should probably be done on all Popupmenus, instead of at the Toolbar level. FX @ericangeles's change is great, but it doesn't work for Flex Toolbars. I'd like to take this fix and push it down to the Popupmenu level instead.

However, menus' for more actions are not working and the color sub menu is not available.
see ticket #2986

We'll take a look at #2986

Was this page helpful?
0 / 5 - 0 ratings