开发者

dijit BorderContainer auto-grow

开发者 https://www.devze.com 2022-12-11 03:53 出处:网络
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.

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 (:


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消