From: Jinhyuk Jun Date: Mon, 14 Jan 2013 04:24:41 +0000 (+0900) Subject: pagelayout : update dynamic control X-Git-Tag: accepted/tizen_2.1/20130425.023924~7^2~247 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10fe7e2e6f76d3c7723e9e538feb40bed790bb49;p=platform%2Fframework%2Fweb%2Fweb-ui-fw.git pagelayout : update dynamic control change ime/dynamic control to UpdatePageLayout Change-Id: I3f768226609d1d9d7c5bd334075e3cca6f7c3d1b --- diff --git a/src/widgets/pagelayout/js/jquery.mobile.tizen.pagelayout.js b/src/widgets/pagelayout/js/jquery.mobile.tizen.pagelayout.js index eefff17..80bc84d 100755 --- a/src/widgets/pagelayout/js/jquery.mobile.tizen.pagelayout.js +++ b/src/widgets/pagelayout/js/jquery.mobile.tizen.pagelayout.js @@ -258,7 +258,8 @@ } else if (e.state == "off") { $elCurrentFooter.show(); } - self.updatePagePadding( thisPage, e.state ); + self.updatePagePadding( thisPage ); + self.updatePageLayout( true ); }); }, @@ -300,7 +301,7 @@ _visible: true, // This will set the content element's top or bottom padding equal to the toolbar's height - updatePagePadding: function ( tbPage, imestatus ) { + updatePagePadding: function ( tbPage ) { var $el = this.element, header = $el.siblings( ".ui-header" ).length, footer = $el.siblings( ".ui-footer" ).length; @@ -309,16 +310,11 @@ if ( this.options.fullscreen && imestatus ) { return; } tbPage = tbPage || $el.closest( ".ui-page" ); - if ( imestatus == "on" ) { - $el.height( window.innerHeight - $el.siblings( ".ui-header" ).height() - - parseFloat( $el.css("padding-top") ) - - parseFloat( $el.css("padding-bottom") ) ); - } + if ( $el.siblings( ".ui-header" ).jqmData("position") == "fixed" || $.support.scrollview ) { $( tbPage ).css( "padding-top", ( header ? $el.siblings( ".ui-header" ).outerHeight() : 0 ) ); } $( tbPage ).css( "padding-bottom", ( footer ? $el.siblings( ".ui-footer" ).outerHeight() : 0 ) ); - }, /* 1. Calculate and update content height */