From ff9db0178b43e027dbac2d008768f95eb0f3a9ac Mon Sep 17 00:00:00 2001 From: HTMLGuyLLC Date: Tue, 26 Mar 2019 10:18:50 -0400 Subject: [PATCH] fallback to centered when triggered element is hidden --- jConfirm.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jConfirm.js b/jConfirm.js index 2a03ecf..ecc00e0 100755 --- a/jConfirm.js +++ b/jConfirm.js @@ -361,7 +361,7 @@ if( helper.dom_wrapped.length === 0 || !helper.dom_wrapped.is(":visible") ) { helper.position = 'auto'; - return ['none', 0, tooltip_width, tooltip_height, 'undefined']; + return ['none', 0, tooltip_width, tooltip_height]; } //get position + size of clicked element diff --git a/package.json b/package.json index 5d207ed..f866422 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jconfirm", - "version": "4.4.3", + "version": "4.4.4", "description": "jQuery confirmation tooltip plugin", "repository": { "type": "git",