Replies: 1 comment
-
Here a image how it looks without re-measuring the component: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions