PDA

View Full Version : [CLOSED]window with collapse panel



Mycoding
8 Jul 2010, 4:11 AM
When collapse panel in window
http://vreshenie.ru/bug.PNG
Is the way to fix it?

Condor
8 Jul 2010, 4:23 AM
Call window.syncShadow() in the expand and collapse event handlers of the panels.

Mycoding
8 Jul 2010, 5:54 AM
Thaks a lot I will try.

giraffezw
9 Sep 2010, 12:00 AM
i know the thread is closed but i have one more question.
here the code i wrote earlier


projectbutton.on('click', function(){
if(!projectwin){

projectwin = new Ext.Window({
//other properties
,items: [{
xtype:'projectform'
}]
});
}

projectwin.show(this);

Ext.getCmp('newProjectForm').on("collapse", function() {
projectwin.syncShadow();
},this);

Ext.getCmp('newProjectForm').on("expand", function() {
projectwin.syncShadow();
},this);
});
now i thought it was a good idea to add the listeners direct into the xtype "projectform" to sync the shadow of the parent window


{
title: 'Informationen'
,xtype: 'fieldset'
,collapsible: true
,collapsed: true
,animCollapse: false
,html: html.join('')
,listeners: {
expand: function(panel) {
//parentWindow.syncShadow();
}
,collapse: function(panel) {
//parentWindow.syncShadow();
}
}
}
now i have to know, how to get the parent window without the Ext.getCmp. Is there a way? I hope you know what I'm getting on

Condor
9 Sep 2010, 12:08 AM
Try:

panel.findParentByType('window').syncShadow();