EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 14, 2025, 06:53:49 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
z-index of tooltip takes no effects after reposition method calls
Pages: [
1
]
« previous
next »
Print
Author
Topic: z-index of tooltip takes no effects after reposition method calls (Read 5385 times)
samuelzhu001
Newbie
Posts: 11
z-index of tooltip takes no effects after reposition method calls
«
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
Re: z-index of tooltip takes no effects after reposition method calls
«
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
Re: z-index of tooltip takes no effects after reposition method calls
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...