Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6617411

Incorrect position of submenu of popup menu when submenu should be placed on left side of popup menu

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6u3
    • client-libs
    • None

      If items are added to submenu in method popupMenuWillBecomeVisible of PopupMenuListener position of submenu is incorrect when submenu is displayed on left side of parent menu ie. when there is not enough space on right side. It looks like submenu position is computed BEFORE event is fired. We use this way to populate submeanu lazily to speed up showing of main popup menu. Small app to demonstrate this behavior is attached. Maximize app window and invoke popup menu on right side of maximized window. Invoke submenu and you will see - submenu is placed over popup menu instead of on left side of popup menu.

      It is reproducible on Linux, Window, JDK 6u3, 7b21. Is there any workaround or another way how to populate submenu lazily?

            Unassigned Unassigned
            mslamasunw Marek Slama (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: