summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrent Richardson <trentdrichardson@gmail.com>2013-08-08 15:20:51 -0400
committerTrent Richardson <trentdrichardson@gmail.com>2013-08-08 15:20:51 -0400
commitb05f1accfc1aa95ad1747eb50f7a4fe02be09ba7 (patch)
treec92356cc47e5a372c9ede150ba0bd8f181d74490
parentdd0f346849938d9f386eeb222c11bbcf622acba2 (diff)
downloadjQuery-Impromptu-b05f1accfc1aa95ad1747eb50f7a4fe02be09ba7.zip
jQuery-Impromptu-b05f1accfc1aa95ad1747eb50f7a4fe02be09ba7.tar.gz
jQuery-Impromptu-b05f1accfc1aa95ad1747eb50f7a4fe02be09ba7.tar.bz2
Issue #16 Fade not covering window
-rw-r--r--index.html4
-rw-r--r--jquery-impromptu.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/index.html b/index.html
index 44926d7..06a2c98 100644
--- a/index.html
+++ b/index.html
@@ -545,8 +545,8 @@ $.prompt(statesdemo);</pre>
</div>
</div>
- <!-- <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script> -->
- <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script>
+ <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
+ <!-- <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script> -->
<script type="text/javascript" src="http://sellfy.com/js/api_buttons.js"></script>
<script type="text/javascript" src="https://gumroad.com/js/gumroad.js"></script>
diff --git a/jquery-impromptu.js b/jquery-impromptu.js
index ca0a186..ecb57d3 100644
--- a/jquery-impromptu.js
+++ b/jquery-impromptu.js
@@ -325,7 +325,7 @@
stateObj = $.prompt.options.states[$state.data('jqi-name')],
pos = stateObj? stateObj.position : undefined,
$window = $(window),
- bodyHeight = $.prompt.outerSize($(document.body), true).h,
+ bodyHeight = document.body.scrollHeight, //$.prompt.outerSize($(document.body), true).h,
windowHeight = $(window).height(),
documentHeight = $(document).height(),
height = bodyHeight > windowHeight ? bodyHeight : windowHeight,