Closed om-nishu-trantor closed 6 years ago
I simply included this script in my html file, and then tried to call
new ResizeSensor(jQuery('#my-container'), function(){ console.log('content dimension changed'); });
It throws
Uncaught TypeError: ResizeSensor is not a constructor
I am sure there is another way to initialise/call the constructor. Can someone put that out here, should be updated in docs/demo as well
Because you haven't included the ResizeSensor.js in your html. Download the files in this repo and use it with <script src="src/ResizeSensor.js"></script> before you execute your new REsizeSensor code.
<script src="src/ResizeSensor.js"></script>
new REsizeSensor
I simply included this script in my html file, and then tried to call
It throws
I am sure there is another way to initialise/call the constructor. Can someone put that out here, should be updated in docs/demo as well