Class MenuInitializer


  • public class MenuInitializer
    extends Object
    This class implements a workaround for menus.

    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 Detail

      • MenuInitializer

        public MenuInitializer​(elemental2.dom.Element menu,
                               String dropDownClass)
    • Method Detail

      • init

        public void init()