|
77 | 77 | return pageMin; |
78 | 78 | } |
79 | 79 |
|
80 | | - function resetActivePageHeight(){ |
81 | | - $( "." + $.mobile.activePageClass ).css( "min-height", getScreenHeight() ); |
| 80 | + function newResetActivePageHeight(){ |
| 81 | + var page=$( "." + $.mobile.activePageClass ); |
| 82 | + page.each(function(){ |
| 83 | + if($(this).closest(".panel-popover").length != 1){ |
| 84 | + $(this).css("min-height", getScreenHeight()); |
| 85 | + } |
| 86 | + else { |
| 87 | + $(this).css("min-height", "100%") |
| 88 | + } |
| 89 | + }); |
| 90 | + |
82 | 91 | } |
83 | 92 |
|
84 | 93 | //override _registerInternalEvents to bind to new methods below |
|
386 | 395 |
|
387 | 396 |
|
388 | 397 | //set page min-heights to be device specific |
389 | | - $( document ).bind( "pageshow.resetPageHeight", resetActivePageHeight ); |
390 | | - $( window ).bind( "throttledresize.resetPageHeight", resetActivePageHeight ); |
| 398 | + $( document ).bind( "pageshow.resetPageHeight", newResetActivePageHeight ); |
| 399 | + $( window ).bind( "throttledresize.resetPageHeight", newResetActivePageHeight ); |
391 | 400 |
|
392 | 401 | }; //end _registerInternalEvents |
393 | 402 |
|
|
425 | 434 | if(!$menu.children('.popover_triangle').length){ |
426 | 435 | $menu.prepend('<div class="popover_triangle"></div>'); |
427 | 436 | } |
| 437 | + $menu.children('.' + $.activePageClass).css('min-height', '100%'); |
428 | 438 | $main.removeClass('ui-panel-right') |
429 | 439 | .css('width', ''); |
430 | 440 | popoverBtn($mainHeader); |
|
435 | 445 | popoverBtn($thisHeader); |
436 | 446 | }); |
437 | 447 | // TODO: unbind resetActivePageHeight for popover pages |
438 | | - $( document ).unbind('pageshow.resetPageHeight'); |
439 | | - $( window ).unbind('throttledresize.resetPageHeight'); |
440 | | - $main.bind('pageshow', resetActivePageHeight ); |
| 448 | + |
441 | 449 | }; |
442 | 450 |
|
443 | 451 | function splitView(){ |
|
0 commit comments