PDA

View Full Version : Anyone having problem with closable panels / borderlayout?



gizzmo
21 Feb 2007, 1:20 AM
Hi,

I having problem showing the closebutton on a contentpanel.
I'm using borderlayouts and contentpanel.

Do I have to set another property than closable?


layout.add('center', new Ext.ContentPanel('content', {title: 'Startsida', closable:true, url:'Start?OpenPage'}));

A bug?

// Johan

kubens
21 Feb 2007, 2:00 AM
I haven't any problems about this. On my test environment http://meavilla.ferioo.de/layout.html this works fine. May you have a mistake in your source ...

Br
Wolfgang

gizzmo
21 Feb 2007, 2:02 AM
From the source in FF I see:


<div class="x-layout-tools-button-inner x-layout-close">

</div>

Should this set the close button? I have looked in the css and everything looks ok.
Using firebug I can see the image panel-close.gif loading.
Z-Index was set to 6 on .x-layout-tools-button so I tried to change it with the same result...

gizzmo
21 Feb 2007, 2:05 AM
Found the problem...

I missed the property: closeOnTab: true on the borderlayout....

Thanks Wolfgang... :D