").appendTo(s),d.keep_visible&&(t.on("mouseleave"+(d.close_on_click?" click":""),function(){T(o)}),t.on("mouseenter",function(){u(o)})),t.appendTo("body"),d.sticky&&e.addClass("Zebra_Tooltip_Has_Close"),r=t.outerWidth(),_=t.outerHeight(),p=i.outerWidth(),a=i.outerHeight(),l=e.outerWidth(),n=e.outerHeight(),t.css({width:(d={tooltip:t,tooltip_width:r,tooltip_height:_+a/2,message:e,arrow_container:s,arrow_width:p,arrow_height:a,arrow:i}).tooltip_width,height:d.tooltip_height}),d.tooltip_width=d.tooltip_width+(e.outerWidth()-l),d.tooltip_height=d.tooltip_height+(e.outerHeight()-n),t.css({width:d.tooltip_width+1,height:d.tooltip_height,display:"none"}),d=b.extend(o.data("Zebra_Tooltip"),d),o.data("Zebra_Tooltip",d)),d.sticky&&!d.close&&(b("
",{"class":"Zebra_Tooltip_Close",href:"javascript:void(0)"}).html("×").on("click",function(t){t.preventDefault();t=o.data("Zebra_Tooltip");t.sticky=!1,o.data("Zebra_Tooltip",t),T(o)}).appendTo(d.message),d.close=!0,d=b.extend(o.data("Zebra_Tooltip"),d),o.data("Zebra_Tooltip",d)),c=h.width(),f=h.height(),r=o.offset(),b.extend(d,{element_left:r.left,element_top:r.top,element_width:o.outerWidth(),element_height:o.outerHeight()}),m=h.scrollTop(),w=h.scrollLeft(),_="left"===d.position?d.element_left-d.tooltip_width+d.arrow_width:"right"===d.position?d.element_left+d.element_width-d.arrow_width:d.element_left+(d.element_width-d.tooltip_width)/2,s=d.element_top-d.tooltip_height,p="left"===d.position?d.tooltip_width-d.arrow_width-d.arrow_width/2:"right"===d.position?d.arrow_width/2:(d.tooltip_width-d.arrow_width)/2,_+d.tooltip_width>c+w&&(p-=c+w-(_+d.tooltip_width)-6,(_=c+w-d.tooltip_width-6)+(p=p+d.arrow_width>d.tooltip_width-6?d.tooltip_width-6-d.arrow_width:p)+d.arrow_width/2d.element_left+d.element_width)&&(p=-1e4),d.message.css("margin-top",""),d.arrow_container.removeClass("Zebra_Tooltip_Arrow_Top").addClass("Zebra_Tooltip_Arrow_Bottom"),s
- * @version 2.3.0 (last revision: January 21, 2023)
- * @copyright (c) 2012 - 2023 Stefan Gabos
+ * @version 2.3.1 (last revision: April 21, 2024)
+ * @copyright (c) 2012 - 2024 Stefan Gabos
* @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU LESSER GENERAL PUBLIC LICENSE
* @package Zebra_Tooltips
*/
@@ -33,7 +33,7 @@
$.Zebra_Tooltips = function(elements, options) {
// so you can tell the version number even if all you have is the minified source
- this.version = '2.3.0';
+ this.version = '2.3.1';
var defaults = {
diff --git a/src/zebra_tooltips.src.js b/src/zebra_tooltips.src.js
index 46d6fe1..0a81c68 100644
--- a/src/zebra_tooltips.src.js
+++ b/src/zebra_tooltips.src.js
@@ -21,8 +21,8 @@
* Read more {@link https://github.com/stefangabos/Zebra_Tooltips/ here}
*
* @author Stefan Gabos
- * @version 2.3.0 (last revision: January 21, 2023)
- * @copyright (c) 2012 - 2023 Stefan Gabos
+ * @version 2.3.1 (last revision: April 21, 2024)
+ * @copyright (c) 2012 - 2024 Stefan Gabos
* @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU LESSER GENERAL PUBLIC LICENSE
* @package Zebra_Tooltips
*/
@@ -33,7 +33,7 @@
$.Zebra_Tooltips = function(elements, options) {
// so you can tell the version number even if all you have is the minified source
- this.version = '2.3.0';
+ this.version = '2.3.1';
var defaults = {