Widget sizing

I've written a cool widget which is 1 issue short of Appstore submission. When my widget renders, it does not know about what max height it can occupy. In a nutshell I need my widget to use the maximum height available within its table. I've tried max-height and min-height and height and even subscribed to the window's sizing event, but my widget either ends up having a zero pixel height or ends up taking all the space and covers my other widgets. My widget is contained in a DIV. So, I guess what I'm asking is, where is a good place to start to handle proper widget resizing on the fly?
1 answers

Dojo docs: