Topic: div height problem

hello

I have a div in wich I load my content with ajax..and I want the div height to change according to the content size..the problem is that everytime the div's height is smaller than the content..here is the site..http://designro.net/mobila/

and this is the script that changes the div height
[code=Javacript]
var x = $('blogs').getSize().size
$('wrapper').setStyle('height', x);
[/code]

can someone help me with this problem??

thank you!!