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

Add autosize to Controls

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: fx1.0
    • Fix Version/s: fx1.3
    • Component/s: javafx
    • Labels:

      Description

      The fact that controls that are *not* placed in a layout container do not autosize is a constant source of bugs and frustration among our early users. We should strongly consider adding autoSize attribute to Controls and default it to true. This would be different behavior from today, but many users (most?) feel that the current behavior is a bug and is very surprising, so it isn't a bad candidate for a change. The difficulty is that we would want to toggle autoSize to false when a control is placed in a layout container or, more appropriately, we'd want the control to simply ignore autoSize if it is parented to a container. This kind of special code hackery is kind of gross, so perhaps there are some other methods that would work better.

        Attachments

          Activity

            People

            Assignee:
            amfowler Anne Fowler (Inactive)
            Reporter:
            rbair Richard Bair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: