Skip to content

SizeObserver does not return size #500

Answered by jourdain
karelvrabeckv asked this question in General
Discussion options

You must be logged in to vote

Wow, good catch.

So it is fixed in the two latest trame-client>=3.0.2 or trame-component>=2.3.1 depending on where you are grabbing the SizeObserver from. It is has recently be added to the built-in trame client to make trame-component even more optional...

For reference:
The issue come from the fact that we were sending the size as a native JS object (DOMRect) which before was getting converted into a plain/json object over the network. But with the new network (wslink>=2), that conversion is not happening automatically (as we now can send inline binary structure) and require manual conversion. I'm expecting similar issue to happen with trame>=3.6, but hopefully we can find a middle grou…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by karelvrabeckv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants