View Full Version : minSize on center Region

29 Oct 2007, 1:11 PM
I'm trying to make two panel region. Center & East. I need the center to be locked at 775px and East to adjust to the browser width. I've tried many combinations of size and minSize, and initialSize with no luck.

var layout = new Ext.BorderLayout(document.body, {
east : {
split: true,
titlebar: false,
autoScroll: true
center: {
titlebar: false,
minSize: 775,
initialSize: 775,
autoScroll: true

29 Oct 2007, 1:34 PM
You can't force sizes on the center region like that - how does it know whether that means height or width? The center region adjusts to the size of it's adjacent regions. My thought would be that at creation time, you determine the viewport width and set east size to that minus 775.