Closed s4cha closed 4 years ago
This fixes the issue described in #123, props @jsonfellin for noticing !
Equation api had bugs when using >= & <= with single values.
>=
<=
Before view.Width >=30 ≠ view.width(>=30) view.Width >=30 was equivalent to view.Width >= Width + 30 (Wrong) view.Botton >= 100 was equivalent to view.Bottom >= Bottom + 100 (Wrong) view.Right >= 100 was equivalent to view.Right >= Right + 100 (Wrong)
view.Width >=30
view.width(>=30)
view.Width >= Width + 30
view.Botton >= 100
view.Bottom >= Bottom + 100
view.Right >= 100
view.Right >= Right + 100
Now view.Width >=30 == view.width(>=30) view.Height <=100 == view.height(<=100) view.Botton >= 100 == view.Bottom >= Bottom - 100 view.Right >= 100 == view.Right >= Right - 100
view.Height <=100
view.height(<=100)
view.Bottom >= Bottom - 100
view.Right >= Right - 100
This fixes the issue described in #123, props @jsonfellin for noticing !
Equation api had bugs when using
>=
&<=
with single values.Before
view.Width >=30
≠view.width(>=30)
view.Width >=30
was equivalent toview.Width >= Width + 30
(Wrong)view.Botton >= 100
was equivalent toview.Bottom >= Bottom + 100
(Wrong)view.Right >= 100
was equivalent toview.Right >= Right + 100
(Wrong)Now
view.Width >=30
==view.width(>=30)
view.Height <=100
==view.height(<=100)
view.Botton >= 100
==view.Bottom >= Bottom - 100
view.Right >= 100
==view.Right >= Right - 100