views:

310

answers:

1

Is there a way to have a dijit.layout.BorderContainer auto-grow in height? I've tried setting min-height: 200px; height: auto;, but it won't scale.

I've tried looking at the API, but that thing is a mess... So any help would be appreciated (:

+2  A: 

You can use the resize() method to change its size dynamically.

The outer size must be specified on the BorderContainer node

You need to specify width/height on the BorderContainer itself, in pixels. You can't use auto, and min-height isn't supported AFAIK. You can, however, use widget attributes minSize and maxSize to set boundaries on the splitters within the container.

peller
Ah, so I can't just tell it to auto-expand to fit the entire content? I will have to calculate the height of the content myself and set it?
peirix
Yes, that's correct.
peller