[Feature request] support vw&vh units #1097
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Now
yoga
only supportauto
percent
andpoint
units,Can add support for
vw
andvh
units ?Hi @titanseason
That's a nice idea and should be fairly easy to implement. A few things need to be done to do that.
YGConfig
.YGResolveValue
to work with the values of the viewport to calculate the number.YGNodeIsStyleDimDefined
and invalidation if the viewport changes.Is it possible to do this without a deep dive into the project? Can I try to implement this?