PDA

View Full Version : Parent-Child relation between windows



vrassouli
25 Dec 2009, 10:16 AM
Heller every body,
i'm working on an application in which a window (lets call it the parent window) is shown with a couple of buttons.
one of the buttons creates another window and shows it as follow:



var win = new Ext.Window({
title:'the title',
width : 300,
height : 200,
html : '<b>Some HTML markup</b>',
constrainHeader:true,
renderTo : parentId,
listeners :{
close : function(){Ext.getCmp(parentId).enable();},
show : function(){Ext.getCmp(parentId).disable();}
}
});
win.show();
this window is rendered to the parent window, and as the constrainHeader is set to true, it makes it not to fly out of the window! and as you see in listeners, it disables the parent window which makes these two windows look like a real application's windows! one window, parent to the other, and no input for the parent while the child is active!
everything is working fine in firefox! but in IE, when you disable the parent window, it makes the child window to be disabled too!
please help me solve this problem
Thanks a lot, and happy holidays to every one!

vrassouli
26 Dec 2009, 3:38 AM
No body knows? :-(

tot2ivn
27 Dec 2009, 6:14 PM
This is actually a CSS bug. Only on IE, the child window gets the style inherited from the parent, so it looks like being disabled.. but actually it's not..the buttons on the child window are still enabled. You need to jump into the CSS to fix this manually or implement some IE-specific hack..

Totti

vrassouli
28 Dec 2009, 1:43 AM
Thank you for your reply
yes, its exactly as you say. buttons are still enabled and working...
but, i'm not good enough at css!:(
would you say which styles i should change?