Skip to content

Questions about Node Dimensions #898

Closed Answered by bcakmakoglu
mattmoredev asked this question in Q&A
Discussion options

You must be logged in to vote

You can't mutate the node.dimensions object if that's what you're talking about - it's readonly and represents the current dimensions of a node as provided by a resize observer.

To actually mutate the dimensions you can either use node.style.height or node.height.

Here's an example.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mattmoredev
Comment options

Answer selected by bcakmakoglu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants