Scroll Bug in Elastic gird jquery plugin

214 Views Asked by At

I'm using the elastic grid plugin to display my gallery. I discoverd a bug in the plugin and I'm wondering how to fix it.

To recreate the bug:

1) click an image to reveal expanded details.

2) clicking on an image in a row below the current slide out causes the plugin to wrongly calulate the scroll. Clicking above the slide out seems to work fine.

Has anyone discoverd a solution to this bug? I've attached reference images

Image1

Image2

Thanks for your time. Cheers

2

There are 2 best solutions below

0
Isabel Inc On BEST ANSWER

After a lot of debugging I found the bug. It was a single line that was causing a miss calculation of the height. For anyone else facing this error comment out the first hidePreview(); line inside the showPreview( $item ) function in the elastic_grid.js file.

0
d_bhatnagar On

I was facing the same problem. Sometimes the page would just scroll itself to the top.

I realized I was using a function(on document.ready()) which was acting upon the List-Categories before it was completely loaded.

See if you're doing something similar.. Let the Plugin Completely Load