EasyUI Forum

General Category => General Discussion => Topic started by: JeroenNL on March 06, 2015, 01:15:22 AM



Title: how to have a maximized window on top
Post by: JeroenNL on March 06, 2015, 01:15:22 AM
Hi guys,

First of all, congratulations with the 1.4.2 release, very nice work!

I've got a question: I have 4 inline windows inside a panel. When I maximize one of these windows, I see some other windows are on op top of the maximized window. How can I prefend that from happening?

Cheers,
JeroenNL


Title: Re: how to have a maximized window on top
Post by: stworthy on March 06, 2015, 07:43:44 AM
Please try this:
Code:
$('#w').window({
onMaximize:function(){
$(this).window('window').css('z-index',++$.fn.window.defaults.zIndex);
}
})


Title: Re: how to have a maximized window on top
Post by: JeroenNL on March 06, 2015, 08:27:42 AM
Thanks! I knew I had to set the z-index somehow. This works like a charm! :)