jquery resize listener on a div

前端 未结 3 923
臣服心动
臣服心动 2020-11-30 06:47

This is the situation, I have 2 div\'s next to each other. One div is very dynamic in height, which basically means it can grow and shrink to accommodate for it\'s content.

3条回答
  •  余生分开走
    2020-11-30 07:23

    https://github.com/sdecima/javascript-detect-element-resize

    Works like a charm!

    I´ve tested attrchange but this was not working, lost 2hours of work :(

提交回复
热议问题