Styling HBox/VBox/GridPane child properties (hgrow, margin, columnIndex, etc)
John Hendrikx
john.hendrikx at gmail.com
Wed Feb 12 14:27:00 UTC 2025
Thanks,
I may need some help with the transition part when the time arrives. In
CssStyleHelper these parent defined properties are treated no different
from any other properties, but I think some of the transition logic is
part of the properties themselves and I didn't implement that so far.
How I've implemented them currently is with just-in-time properties that
only implement StyleableProperty (so it's not a full property that could
be bound). The actual storage is in the properties map associated with
all Nodes.
I'll see if I can work this up as a PR over the weekend. It works
already, but needs some polishing and perhaps some optimization as its
part of CSS code.
--John
On 12/02/2025 13:48, Michael Strauß wrote:
> This looks like a nice enhancement. The syntax is similar to CSS
> features like Grid Layout [0] ("grid-column" and "grid-row" are
> properties on children of a grid container). We need to figure out how
> these extension properties work with transitions. They should follow
> the same transition rules as regular properties.
>
> [0] https://www.w3.org/TR/css-grid-1/
More information about the openjfx-dev
mailing list