FR : xy & multixy : point size in %

XY and multixy point size is in pixels units.

When working on a session where all widgets use relative % position and size, this is not very coherent.

For example, the same session looks this on a large screen

...and like this on a phone :

FR : Would it be possible to define point size in % ?
10%

Or is there an easy way to get the size of the widget and use the point-size value as a % on the widget largest dim width or height)

I’m defining different sizes for each point in css as described here
Css, multixy pad size
I’ve tried using % instead of rem, but it doesn’t work…

Thanks for considering :slight_smile:

Mathieu

Well since you're using relative sizes you could write something like #{globals.screen.width * 0.02} and get something decent. Supporting % here might be more tricky than it seems...

Thanks jean-Emmanuel

is window (browser?) size available as well ?
It would be much easier & useful in that case, because window is not necessary in fullscreen.. especially when editing the session on a computer.
(when in edit mode the left browser + inspector resize the usable area)
It would allow points size to react to window resizing.