-
Hey! And secondly: Size {
width: AvailableSpace::Definite(1280.),
height: AvailableSpace::Definite(720.),
} but when i print the layout of my size=100% element its: Thanks :D |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You probably should pass your percentage on a 0.0-1.0 scale |
Beta Was this translation helpful? Give feedback.
-
You can do either. Taffy doesn't care what your units are: whatever units you put it, you'll values in the same units out. So you can do any conversions to either the inputs to Taffy or the outputs from Taffy. One thing to be aware of is that Taffy will round the layout to exact pixel sizes, so if you have a preferred unit to do rounding in then you should use that. |
Beta Was this translation helpful? Give feedback.
You probably should pass your percentage on a 0.0-1.0 scale