我有两个组件。
第一个组件包含一个form带textara控件,第二个组件包含一个SVG图表。但是,当用户在textarea控件中添加更多详细信息并且由于该表单元素的大小被调整时,我想检测它以使我的SVG图表与该更改对齐。
<div id="comp1">
<form action="/action_page.php" id="usrform">
<textarea rows="4" cols="50" name="comment" form="usrform">
Enter text here...</textarea>
</form>
<div>
<div id="comp2">
</div>
我想在comp1调整大小时检测更改。