()
| 280 | |
| 281 | // Function to update size |
| 282 | const updateSize = () => { |
| 283 | const boundingBox = styleAreaRef.current.getBoundingClientRect(); |
| 284 | setSize({ width: boundingBox.width, height: boundingBox.height }); |
| 285 | }; |
| 286 | |
| 287 | // Initial size update |
| 288 | updateSize(); |