ImageView.fitWidth()/.fitHeight()/.preserveRatio() styling

Andy Goryachev andy.goryachev at oracle.com
Thu Nov 16 19:57:58 UTC 2023


Dear Dirk:

I don’t see any reason why not - we’d need to add entries in getCssMetaData() and update CSS reference.  In fact, there is a TODO item in ImageView:812 along the lines

        // TODO
        // "preserve-ratio","smooth","viewport","fit-width","fit-height"

Perhaps it just fell through the cracks.

Can you describe your use case?  Is this something you’d like to impement?

-andy

From: openjfx-dev <openjfx-dev-retn at openjdk.org> on behalf of Dirk Lemmermann <dlemmermann at gmail.com>
Date: Thursday, November 16, 2023 at 07:12
To: openjfx-dev <openjfx-dev at openjdk.org>
Subject: ImageView.fitWidth()/.fitHeight()/.preserveRatio() styling
Hi everyone,

Is there a particular reason why the fitWidth, fitHeight, and preserveRatio() properties of an ImageView can not be styled via CSS?

Dirk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20231116/e4eb61e9/attachment.htm>


More information about the openjfx-dev mailing list