EasyUI Forum
April 29, 2024, 05:19:44 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: how to have a maximized window on top  (Read 6473 times)
JeroenNL
Newbie
*
Posts: 37


View Profile
« 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
« Last Edit: March 06, 2015, 02:04:50 AM by JeroenNL » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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);
}
})
Logged
JeroenNL
Newbie
*
Posts: 37


View Profile
« Reply #2 on: March 06, 2015, 08:27:42 AM »

Thanks! I knew I had to set the z-index somehow. This works like a charm! Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!