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

Use Computed Size should be modified to work also with ImageView.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 7u40
    • javafx
    • None

      >> Speaking of which, if I put an ImageView onto the Scene, and then give
      >> it an image, it doesn't auto-size to the image bounds. As a
      >> consequence, there isn't a good way of resizing the ImageView to the
      >> size of the image.

      To resize an ImageView to its default native size you can set
      its fitWidth and fitHeight to 0 in the inspector.

      We should probably add ImageView to the list of nodes that
      support "Use Computed Size" - with a special implementation that
      would set the fit size to (0,0).

            slions Sandra Lions-piron
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: