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

Can't match the width of the choice box's dropdown to the choice box

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • fx2.0.1
    • javafx

      I'm using a ChoiceBox control. The choice box seems to be composed of two parts: the box(displaying the current selection) and a context menu(dropdown). What I find strange is that the dropdown of the choice box(the context menu) has different size than the choice box by default:

      http://manvox.com/javafx1.3/choice-box-dropdown.jpeg

      I can style the choiceBox's box element by modifying the .choice-box CSS selector. I can also style the dropdown using the .context-menu and .menu-item selectors.
      How can I ensure that the dropdown has the same size of it's parent choice box and is aligned to it?

      https://forums.oracle.com/forums/thread.jspa?threadID=2315242&tstart=0

            psomashe Parvathi Somashekar (Inactive)
            kiriljfx Kiril (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: