Jemt / Fit.UI

Fit.UI is a JavaScript based UI framework built on Object Oriented principles
http://fitui.org
GNU Lesser General Public License v3.0
19 stars 7 forks source link

ContextMenu: Right side edge detection not implemented #109

Open FlowIT-JIT opened 3 years ago

FlowIT-JIT commented 3 years ago

Currently ContextMenu only detects the bottom edge of the viewport and opens the context menu and sub menus upwards if needed.

image

As the image demonstrates, the context menu reacts as expected to the bottom edge, but not to the right side edge.

Contrary to what would be expected, this is a minor problem on mobile devices, as ContextMenu offers an alternative behaviour on smaller screens:

image