Using Primefaces 2.2.1, if a submenu of a menubar is too big for the browser window, it appears above the menubar (outside of the page) and is unusable.
Simple test case:
Code:
<p:menubar>
<p:submenu label="test">
<p:menuitem> <h:commandLink value="test 123"/> </p:menuitem>
<p:menuitem> <h:commandLink value="test 123"/> </p:menuitem>
<p:menuitem> <h:commandLink value="test 123"/> </p:menuitem>
<p:menuitem> <h:commandLink value="test 123"/> </p:menuitem>
<p:menuitem> <h:commandLink value="test 123"/> </p:menuitem>
<p:menuitem> <h:commandLink value="test 123"/> </p:menuitem>
<p:menuitem> <h:commandLink value="test 123"/> </p:menuitem>
<p:menuitem> <h:commandLink value="test 123"/> </p:menuitem>
<p:menuitem> <h:commandLink value="test 123"/> </p:menuitem>
<p:menuitem> <h:commandLink value="test 123"/> </p:menuitem>
<p:menuitem> <h:commandLink value="test 123"/> </p:menuitem>
<p:menuitem> <h:commandLink value="test 123"/> </p:menuitem>
...
</p:submenu>
<p:menubar>
If you reduce the window size to some small height, you can see the problem.
It happens in showcase too, although the submenu is then simply hidden.
This makes it unusable for some clients (ipad).
Any workaround or solution ?
UPDATE: I can reproduce the problem on this page: http://wijmo.com/widgets/wijmo-open/menu/ ; if you reduce the window height to just somewhat less than the menu size, it appears above.