SolidJSS
SolidJSโ€ข4y agoโ€ข
32 replies
musiclover

How to bind element width, height to signal?

My <div>'s size will be changed by parent or css class.
I want to bind div's offsetWidth, offsetHeight to signal inside component.
Then I want to do something with the signals.
How can I do it?
I know there is 'ref' attribute.
But does ret update the signal when offsetWidth, offsetHeight is changed, too?
image.png
Was this page helpful?