pagelayout : update dynamic control
authorJinhyuk Jun <jinhyuk.jun@samsung.com>
Mon, 14 Jan 2013 04:24:41 +0000 (13:24 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 15 Jan 2013 07:21:26 +0000 (16:21 +0900)
change ime/dynamic control to UpdatePageLayout

Change-Id: I3f768226609d1d9d7c5bd334075e3cca6f7c3d1b

src/widgets/pagelayout/js/jquery.mobile.tizen.pagelayout.js

index eefff17..80bc84d 100755 (executable)
                                } else if (e.state == "off") {
                                        $elCurrentFooter.show();
                                }
-                               self.updatePagePadding( thisPage, e.state );
+                               self.updatePagePadding( thisPage );
+                               self.updatePageLayout( true );
                        });
                },
 
                _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;
                        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   */