summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrent <trentdrichardson@gmail.com>2011-10-31 08:14:03 -0400
committerTrent <trentdrichardson@gmail.com>2011-10-31 08:14:03 -0400
commit79101f671216ebb10644ae90cac53e58e8049367 (patch)
treef6907fdc07676d081e1157b0923c47c2c8f675f6
parent60464499a1bd46dca831aeb88155936c9e4fdccb (diff)
downloadjQuery-Impromptu-79101f671216ebb10644ae90cac53e58e8049367.zip
jQuery-Impromptu-79101f671216ebb10644ae90cac53e58e8049367.tar.gz
jQuery-Impromptu-79101f671216ebb10644ae90cac53e58e8049367.tar.bz2
Fix overlay height issue
-rw-r--r--jquery-impromptu.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/jquery-impromptu.js b/jquery-impromptu.js
index a4c438a..a864d62 100644
--- a/jquery-impromptu.js
+++ b/jquery-impromptu.js
@@ -2,7 +2,7 @@
* jQuery Impromptu
* By: Trent Richardson [http://trentrichardson.com]
* Version 3.2
- * Last Modified: 10/12/2011
+ * Last Modified: 10/31/2011
*
* Copyright 2011 Trent Richardson
* Dual licensed under the MIT and GPL licenses.
@@ -164,8 +164,10 @@
var positionPrompt = function(){
var bodyHeight = $body.outerHeight(true),
windowHeight = $window.height(),
+ documentHeight = $(document).height(),
height = bodyHeight > windowHeight ? bodyHeight : windowHeight,
top = parseInt($window.scrollTop(),10) + (options.top.toString().indexOf('%') >= 0? (windowHeight*(parseInt(options.top,10)/100)) : parseInt(options.top,10));
+ height = height > documentHeight? height : documentHeight;
$jqib.css({
position: "absolute",
@@ -246,6 +248,7 @@
$.prompt.defaults = {
prefix:'jqi',
+
classes: '',
buttons: {
Ok: true