Hello Putharin,
Have you tried making it take 100% the height of the parent?
Normally on webpages if you use relative height, the child object is used as a template for the parent's height, so in theory if you use 100% of parent height it should expand the parent div to the required height.
Hope this helps