summaryrefslogtreecommitdiffstats
path: root/dist/jquery-impromptu.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/jquery-impromptu.js')
-rw-r--r--dist/jquery-impromptu.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/jquery-impromptu.js b/dist/jquery-impromptu.js
index 8a62b4a..d971588 100644
--- a/dist/jquery-impromptu.js
+++ b/dist/jquery-impromptu.js
@@ -665,10 +665,10 @@
if(pos && pos.container){
var offset = $(pos.container).offset(),
hasScrolled = false;
-
- top = (offset.top + pos.y) - (t.options.top.toString().indexOf('%') >= 0? (windowHeight*(parseInt(t.options.top,10)/100)) : parseInt(t.options.top,10));
if($.isPlainObject(offset) && offset.top !== undefined){
+ top = (offset.top + pos.y) - (t.options.top.toString().indexOf('%') >= 0? (windowHeight*(parseInt(t.options.top,10)/100)) : parseInt(t.options.top,10));
+
t.jqi.css({
position: "absolute"
});