flowkey / resize-sensor

Detects the any resizing of an DOM element in Meteor
9 stars 11 forks source link

ResizeSensor is not recognizing changes to div in Chrome... #1

Open venkatpolisetti opened 7 years ago

venkatpolisetti commented 7 years ago

I am using Chrome: 60.0.3112.101 (Official Build) (64-bit) on windows 7 and it is not registering resize events for the Chrome browser. It works well in IE 11, though.

Here is the JS code:

sensor = new ResizeSensor(glc$('div[id$=glc_container]'), function() { console.log('ResizeSensor fired for: glc_container'); });

Any ideas?

nerdmed commented 7 years ago

HI @venkatpolisetti we are using this inside the lib:

https://github.com/marcj/css-element-queries

could you try if this works for you?