openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.ui.commons.MenuBar overflow menu does not seem to work correctly

Open RalphMarshall opened this issue 11 years ago • 2 comments

OpenUI5 version: 1.28

Browser/version (+device/version): Chrome 41 URL (minimal example if possible): http://jsbin.com/daveqa/1/

Steps to reproduce the problem:

  1. Open the example
  2. Resize the window so that not all of the menu items can be displayed
  3. Click on the overflow button (>> at right of menubar)

What is the expected result? a list of the hidden menu items should be shown

What happens instead? an essentially empty overflow menu appears with no items in it. Also, some of the time no menu at all appears and I get an error in the console, but I cannot figure out what is different between the two cases.

Any other information? (attach screenshot if possible)

screen shot 2015-04-10 at 4 56 21 pm

RalphMarshall avatar Apr 10 '15 20:04 RalphMarshall

Currently the MenuBar only accepts Menus, not MenuItems.

But it is a valid point that this should also be supported. I talked to the developer and we plan to add this functionality.

Internal reference: 1570147660

sirion avatar Apr 15 '15 09:04 sirion

Hello Ralph, up to now the MenuBar expected MenuItems which have a sub menu. These sub menus are opened when the corresponding item in the bar was triggered. In the master branch I extended now the behavior. When a root item does not have a menu it is directly selectable / clickable in the bar. In this case the items select event is fired. Best Regards Jens

simlin avatar May 06 '15 10:05 simlin