Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip is hidden behind a window #29

Closed
nillerch opened this issue Feb 16, 2013 · 2 comments
Closed

Tooltip is hidden behind a window #29

nillerch opened this issue Feb 16, 2013 · 2 comments

Comments

@nillerch
Copy link

Hi
I am trying to use opentip in my project. It works fine in the base window of the form, however if I use it on elements placed in a windows that I open in my js code, the tooltip text displays behind the "popup" window, I have tried to set the z-index in opentip.css to 2147483647 but it stills show the tooltip text behind the window.

thx for your help

Torben

@enyo
Copy link
Owner

enyo commented Feb 16, 2013

Hi, Opentip sets the zIndexes programmatically so Opentips that are created later have a higher zIndex. To increase the initial zIndex, set it on the Opentip object itself like this:

Opentip.lastZIndex = 100000;

@enyo enyo closed this as completed Feb 16, 2013
@nillerch
Copy link
Author

Thx, I tried to set the Zindex as suggested but still the tooltip goes behind the window, I also tried to create the opentip object after the windows has been opened also with the same result. I have created a generic example with the Kendo UI widget library I uses to create the popup window, but cannot see any possibility to upload the example files here ?
But here is my JS code:

$(document).ready(function () {
var window = $("#eventWindow");
window.kendoWindow({
width: "300px",
height: "315px",
title: "Tooltip always goes behind",
actions: ["Refresh", "Maximize", "Close"],
visible: false,
});

window.bind("activate", openeventwindow);

function openeventwindow(args) {
var myOpentip = new Opentip($("#message"));
myOpentip.lastZIndex = 100000;
myOpentip.setContent("New Tootip contents always goes behinf the window");
}

$("#Buttontest").bind('click', function() {
     window.data("kendoWindow").open();
});

});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants