diff options
author | Trent <trentdrichardson@gmail.com> | 2011-10-31 08:14:03 -0400 |
---|---|---|
committer | Trent <trentdrichardson@gmail.com> | 2011-10-31 08:14:03 -0400 |
commit | 79101f671216ebb10644ae90cac53e58e8049367 (patch) | |
tree | f6907fdc07676d081e1157b0923c47c2c8f675f6 | |
parent | 60464499a1bd46dca831aeb88155936c9e4fdccb (diff) | |
download | jQuery-Impromptu-79101f671216ebb10644ae90cac53e58e8049367.zip jQuery-Impromptu-79101f671216ebb10644ae90cac53e58e8049367.tar.gz jQuery-Impromptu-79101f671216ebb10644ae90cac53e58e8049367.tar.bz2 |
Fix overlay height issue
-rw-r--r-- | jquery-impromptu.js | 5 |
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
|