|
@ -470,18 +470,24 @@ $.fn.popup = function(parameters) { |
|
|
}, |
|
|
}, |
|
|
offstagePosition: function(position) { |
|
|
offstagePosition: function(position) { |
|
|
var |
|
|
var |
|
|
boundary = { |
|
|
|
|
|
|
|
|
screen = { |
|
|
top : $(window).scrollTop(), |
|
|
top : $(window).scrollTop(), |
|
|
bottom : $(window).scrollTop() + $(window).height(), |
|
|
|
|
|
|
|
|
left : $(window).scrollLeft(), |
|
|
|
|
|
width : $(window).width(), |
|
|
|
|
|
height : $(window).height() |
|
|
|
|
|
}, |
|
|
|
|
|
boundary = { |
|
|
|
|
|
top : screen.top, |
|
|
|
|
|
bottom : screen.top + screen.height, |
|
|
left : 0, |
|
|
left : 0, |
|
|
right : $(window).scrollLeft() + $(window).width() |
|
|
|
|
|
|
|
|
right : screen.left + screen.width |
|
|
}, |
|
|
}, |
|
|
popup = { |
|
|
|
|
|
|
|
|
popup = { |
|
|
width : $popup.width(), |
|
|
width : $popup.width(), |
|
|
height : $popup.height(), |
|
|
height : $popup.height(), |
|
|
offset : $popup.offset() |
|
|
offset : $popup.offset() |
|
|
}, |
|
|
}, |
|
|
offstage = {}, |
|
|
|
|
|
|
|
|
offstage = {}, |
|
|
offstagePositions = [] |
|
|
offstagePositions = [] |
|
|
; |
|
|
; |
|
|
position = position || false; |
|
|
position = position || false; |
|
|