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
I was wondering if it is possible to implement a similar concept with edges. For example, if I wanted my top margin of a subview to its superview to be 20% of the superview height (i.e. subview.top = superview.top + 0.2*superview.height), how would I accomplish that?
Currently, using the multiplierparameters in width()/height() and centerX()/centerY() works, but there has to be support for the alternate form.
The text was updated successfully, but these errors were encountered:
CSS has the ability to allow proportional margin and padding:
https://webplatform.github.io/docs/guides/the_css_layout_model/#Proportional-margins-and-padding-in-the-W3C-box-model
I was wondering if it is possible to implement a similar concept with edges. For example, if I wanted my top margin of a subview to its superview to be 20% of the superview height (i.e. subview.top = superview.top + 0.2*superview.height), how would I accomplish that?
Currently, using the
multiplier
parameters inwidth()
/height()
andcenterX()
/centerY()
works, but there has to be support for the alternate form.The text was updated successfully, but these errors were encountered: