Does setting of width and height only work in jquery if the element is visible?
Unless I do show – nothing gets resized, however this is causing flickering.
Is there a way to make it work even when the element I want to resize or its container is not visible?
Does setting of width and height only work in jquery if the element is
Share
No, setting the height/width sets attributes directly no matter what the old value was, it doesn’t matter if it’s visible or not.
Getting the height and width might be a different story.
How do you know it doesn’t get resized if it’s hidden? How are you hiding the elements?
I’ve tried resizing a div when having
visibility:hidden;on it and it works: http://jsfiddle.net/RUThh/And here with
display:none;: http://jsfiddle.net/PAvzn/