PDA

View Full Version : [2.0b1][FIXED] WindowManager z-Index bug (fixed in RC1)



dafimoto
26 Oct 2007, 4:34 AM
Ext.WindowGroup = function(){
......
var orderWindows = function(){
accessList.sort(sortWindows);
var seed = Ext.WindowMgr.zseed; //!!!!!!! BUG
for(var i = 0, len = accessList.length; i < len; i++){
var win = accessList[i];
if(win && !win.hidden){
win.setZIndex(seed + (i*10));
}
}
activateLast();
};

It seems that orderWindows private function will always look as zIndex for the default window manager instead of its private manager if available

dafimoto
26 Oct 2007, 4:59 AM
a workaround could be



var orderWindows = function(){
accessList.sort(sortWindows);
if (accessList.length)
var seed = accessList[0].manager.zseed;
for(var i = 0, len = accessList.length; i < len; i++){
var win = accessList[i];
if(win && !win.hidden){
win.setZIndex(seed + (i*10));
}
}
activateLast();
}

jsakalos
28 Oct 2007, 3:25 PM
Thank you for reporting. We will take a look at it.

aconran
15 Nov 2007, 2:59 AM
This problem was resolved between Ext 2.0 beta1 and Ext 2.0 RC1. Could you please confirm that it is working in your test case?

matei
1 Jul 2008, 2:02 AM
This problem was resolved between Ext 2.0 beta1 and Ext 2.0 RC1. Could you please confirm that it is working in your test case?
Hi, i hava a problem with confim (z-inxex problem i think).
edit: ext-2.1/examples/desktop/sample.js
and add:


...
iconCls:'remove',
handler: handlerRemove
...
function handlerRemove(){
Ext.Msg.confirm('Confirm','Are you sure?',
function(btn){
if(btn == 'yes'){
Ext.Msg.alert('Alert','Deleted...');
}
});
}

try: ext-2.1/examples/desktop/desktop.html
open Grid and Accordion window now try to see what is doing on remove. (you can't see confirm Msg if both windows are opened.

mystix
1 Jul 2008, 2:06 AM
Hi, i hava a problem with confim (z-inxex problem i think).
edit: ext-2.1/examples/desktop/sample.js
and add:


...
iconCls:'remove',
handler: handlerRemove
...
function handlerRemove(){
Ext.Msg.confirm('Confirm','Are you sure?',
function(btn){
if(btn == 'yes'){
Ext.Msg.alert('Alert','Deleted...');
}
});
}

try: ext-2.1/examples/desktop/desktop.html
open Grid and Accordion window now try to see what is doing on remove. (you can't see confirm Msg if both windows are opened.

which browser?

matei
1 Jul 2008, 2:11 AM
FireFox3

mystix
1 Jul 2008, 2:33 AM
try this:
http://extjs.com/forum/showthread.php?p=181931#post181931

p.s. do check out the other posts in that FF3 thread.

matei
1 Jul 2008, 3:42 AM
try this:
http://extjs.com/forum/showthread.php?p=181931#post181931

p.s. do check out the other posts in that FF3 thread.
I tryed to fix it with:
Ext.WindowMgr.zseed = 50000;
but new problem appears (combobox values are going in back of windows)
My solution for FF3 now is to temporary change Ext.WindowMgr.zseed before showing confirm and after that change it back.
For details and code vizit: http://nicolaematei.wordpress.com/2008/07/02/ext-js-firefox3-z-index-bug/