Bug 16400: Restore the previous stack order behavior

When updating the plugin, the stack order behavior has changed. This
patch restores the prevous behavior (not always z-index: 1000)

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2016-05-13 15:04:47 +01:00 committed by Kyle M Hall
parent 3fe6398c22
commit 82dbf05f54
1 changed files with 4 additions and 5 deletions

View File

@ -36,9 +36,6 @@
'top': originalOffset
});
}
tbh.css({
'z-index': 1000
});
if (options.enabled) {
$(window).scroll(function () {
@ -49,14 +46,16 @@
if (fixMe) {
tbh.css({
'position': 'fixed',
'top': '0'
'top': '0',
'z-index': '1000'
});
tbh.addClass("floating");
}
if (repositionMe) {
tbh.css({
'position': 'absolute',
'top': originalOffset
'top': originalOffset,
'z-index': '1'
});
tbh.removeClass("floating");
}