public class MenuInitializer extends Object
Menus in a dialog cannot be affected by the "overflow: hidden" CSS property from the dialog content. Thus, this workaround moves the dropdown element to the "body" element when the menu is opened, and it moves the dropdown element back to the "menu" when the menu closed.
Constructor and Description |
---|
MenuInitializer(elemental2.dom.Element menu,
String dropDownClass) |
public MenuInitializer(elemental2.dom.Element menu, String dropDownClass)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.