-
-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Rectangle
frame is not being set properly
#185
Comments
Thanks for reporting this @Outcue! @carson-katri do you think that something like #176 would help here? I imagine we could read width/height from the geometry proxy value and pass that to SVG? |
Yeah, that could work. Another solution would be to set the width and height of SVG to 100% if no size is specified. |
I imagine setting it to 100% by default also saves some cycles that would be spent on layout updates with |
For reference, this is where the size of the SVG element is calculated: https://github.com/swiftwasm/Tokamak/blob/11af0f8d981ced3142f84e9ac1fa13e71c5ce0da/Sources/TokamakDOM/Shapes/Path.swift#L148 |
Rectangle
frame is not being set properly
A simple rectangle example like this:
is not rendering properly.
The width and height properties are being set properly on the div representing the rectangle, but the svg object that is a child of the rectangle div is not inheriting the width and height. The width and height of the svg div is 0, 0.
If the width and height of the svg object are set, the rectangle will render properly.
The text was updated successfully, but these errors were encountered: