added length support for width parmeter

This commit is contained in:
Louis Heredero 2024-08-28 13:53:37 +02:00
parent 3d9e045b56
commit 226efa46b7
Signed by: HEL
GPG Key ID: 8D83DE470F8544E7

View File

@ -51,7 +51,10 @@
let w = m.width
let h = m.height
let r = if w == 0pt {0} else {
if width == auto {1} else {
if width == auto {1}
else if type(width) == length {
width / w
} else {
size.width * width / w
}
}