Hello -

I'm using an async get to fill a div. I found that if I called slideDown()
on the div after filling it I usually get text and images overflowing
outside of the div. 


I thought it was one of those css float problems - so I tried adding the
<br clear="both"/> hack - but I still had overflow.


Eventually I found that if I called show() instead of slideDown() - it sized
the div correctly. subsequent uses of slideUp() and slideDown() are no
problem once the div is filled...


here is the relevant code:


$.get('/plainthing/open/' + id, function(response){
                        $("div#thing_" + id).find("div.full").hide();
                        $("div#thing_" +
id).find("div.full").html($("<div></div>").html(response).find("div.full").html());
                        //$("div#thing_" + 
id).find("div.full").slideDown("normal");
                        $("div#thing_" + id).find("div.full").show();
});

Have you encountered this before?

Thanks..

-- 
View this message in context: 
http://www.nabble.com/slideDown-vs.-show---overflow-tf2179500.html#a6027023
Sent from the JQuery forum at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to