View Full Version : [CLOSED][3.??] Collapsed panel does not take margin into account

Derk Geene
31 Aug 2009, 4:32 AM

this is just a minor point, not really a bug:

var win = new Ext.Window({
title : 'MyWindow',
closable : false,
maximizable: true,
width : 1000,
height : 620,
margins: {top: 0, right:0, bottom:20, left:0},
border : false,
plain : true,
layout : 'border',

items: [
new Ext.Panel({
region: 'east',
border: true,
split: true,
width: '250px',
title: 'Help',
collapsible: true,
margins: '26px 0px 0px 0px'


Because the content panel contains a menu i gave the helppanel a topmargin of 26 px. It's just a minor point, but when the helppanel is collapsed it does not take this margin into account. It gets the full height.

In my humble opinion it would be nicer if the margin is also taken into account when the panel is collapsed.

10 Sep 2009, 11:34 PM
There is an option cmargins that does this. Marking as closed.

Derk Geene
11 Sep 2009, 12:52 AM
oups, sorry & thanks