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>
'top': originalOffset
});
}
- tbh.css({
- 'z-index': 1000
- });
if (options.enabled) {
$(window).scroll(function () {
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");
}