You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Workarounds without calculations resemble workarounds present in the web before calc: ie, dummy elements, manual calculation by measuring using JavaScript (which means you have to do your layout twice), etc. All poor solutions.
The text was updated successfully, but these errors were encountered:
What problem does this solve or what need does it fill?
When styling UI elements we often need to calculate styles properties using multiple values with mixed units (eg, a mixture of percents and pixels).
What solution would you like?
I propose implementing
Val::Calc
forbevy_ui::geometry::Val
which represents a calculation to be evaluated. This should resemble the calc API in the web: https://developer.mozilla.org/en-US/docs/Web/CSS/calcI would like to use plain arithmetic operators to create such calculations.
Usage of this API would look like:
What alternative(s) have you considered?
Workarounds without calculations resemble workarounds present in the web before calc: ie, dummy elements, manual calculation by measuring using JavaScript (which means you have to do your layout twice), etc. All poor solutions.
The text was updated successfully, but these errors were encountered: