added length support for width parmeter
This commit is contained in:
parent
3d9e045b56
commit
226efa46b7
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user