We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1d5f2af + 4f354ba commit 3316182Copy full SHA for 3316182
experiments/scrollview/scrollview.js
@@ -1,8 +1,8 @@
1
function ResizePageContentHeight(page) {
2
var $page = $(page),
3
$content = $page.children( ".ui-content" ),
4
- hh = $page.children( ".ui-header" ).outerHeight() : 0,
5
- fh = $page.children( ".ui-footer" ).outerHeight() : 0,
+ hh = $page.children( ".ui-header" ).outerHeight() || 0,
+ fh = $page.children( ".ui-footer" ).outerHeight() || 0,
6
pt = parseFloat($content.css( "padding-top" )),
7
pb = parseFloat($content.css( "padding-bottom" )),
8
wh = window.innerHeight;
0 commit comments