louisremi/jquery-smartresize

Occasional resize bug

Opened this issue · 0 comments

Hey there (continuing from Twitter),

This code has been brilliant! Nice.

I'm not much of a coder myself, but have used this script as part of a jQuery Accordion script (http://tympanus.net/Tutorials/FlexibleSlideToTopAccordion/). It was working perfectly at first, now I have this bug.

This is the site I used it on: http://www.elementalchile.cl/j_rdsn/

What happens is, when I click a tab (any tab at random), about 1/5 of the time, it only half opens. I've attached a screen grab below to show better. In the HTML/CSS, the height coming through is calculated wrong on the "st-open" class - the height is 133px. In order to recreate this error constantly, it's possible to resize the page width, and try another tab. It seems random as to when it'll happen, and can happen to any tag :-/

It would be massively appreciated if you can see why it is. Once we've fixed this, I can launch it!

Thanks very much for your time - its a big help

Jamie

screen shot 2015-05-28 at 14 59 57