EasyUI Forum
September 14, 2025, 06:58:40 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: z-index of tooltip takes no effects after reposition method calls  (Read 5386 times)
samuelzhu001
Newbie
*
Posts: 11


View Profile
« on: May 10, 2020, 11:09:26 PM »

like this:
   $('#prompt').tooltip({
            position: 'top',
            content: $('#promptContent').html(),
            onShow: function () {
                $(this).tooltip('tip').css({
                    zIndex:99999     // I want it to be top of all
                });
               //  $(this).tooltip("reposition");  //when uncomment this line, the z-index value is undefined. the tooltip is covered by other elememts which have big z-index.
            }
        });
Logged
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 on: May 12, 2020, 12:13:42 AM »

You can set the 'zIndex' property value while creating the tooltip component.
Code:
$('#prompt').tooltip({
  position: 'top',
  zIndex: 99999,
  ...
})
Logged
samuelzhu001
Newbie
*
Posts: 11


View Profile
« Reply #2 on: May 12, 2020, 04:55:13 AM »

fine.
Perhaps the zIndex property should be included in the documentation.
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!