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 really like ink and played around quite some time now, but there is one thing I'm missing:
I created a component that renders a Box with a title (TitledBox) and uses measureElement to get it's own size to render the border.
Problem is: the children of this component can change size during the session. In the example above as soon as the file is loaded completly, it will get displayed and will change the size of the box.
But measureElement is ment to be used one time after mount, and there is no built-in trigger for re-measure the component if it changes it's size.
So the question is:
So how can I listen for size changes of a component without doing a "measureElement" in a setInterval() loop? Am I missing something or is this not (yet) implemented?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi together,
I really like ink and played around quite some time now, but there is one thing I'm missing:
I created a component that renders a Box with a title (TitledBox) and uses measureElement to get it's own size to render the border.
Problem is: the children of this component can change size during the session. In the example above as soon as the file is loaded completly, it will get displayed and will change the size of the box.
But measureElement is ment to be used one time after mount, and there is no built-in trigger for re-measure the component if it changes it's size.
So the question is:
So how can I listen for size changes of a component without doing a "measureElement" in a setInterval() loop? Am I missing something or is this not (yet) implemented?
All reactions