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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: fx2.0.1
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: