scrollview: get the height including margin
authorMinkyu Kang <mk7.kang@samsung.com>
Thu, 24 Jan 2013 06:19:41 +0000 (15:19 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Thu, 24 Jan 2013 11:50:15 +0000 (20:50 +0900)
Added the overflow property like ui-content.

Change-Id: I241bc440089eecca830113d50a1d73d4a52b3017

src/themes/tizen/common/jquery.mobile.tizen.scrollview.less
src/widgets/common/js/jquery.mobile.tizen.scrollview.js

index 6c8a38c..bcb1c27 100644 (file)
@@ -5,6 +5,8 @@
 }
 
 .ui-scrollview-view {
+       overflow: visible;
+       overflow-x: hidden;
 }
 
 .ui-scrolllistview .ui-li-divider {
index 713a2e9..03cfc0c 100644 (file)
@@ -65,7 +65,7 @@
                },
 
                _getViewHeight: function () {
-                       return this._$view.height() + this._view_offset;
+                       return this._$view.height();
                },
 
                _makePositioned: function ( $ele ) {
@@ -99,7 +99,6 @@
                        this._makePositioned( this._$view );
                        this._$view.css( { left: 0, top: 0 } );
 
-                       this._view_offset = this._$view.offset().top - this._$clip.offset().top;
                        this._view_height = this._getViewHeight();
 
                        this._sx = 0;
                        });
 
                        $c.closest(".ui-page")
-                               .one( "pageshow", function ( e ) {
-                                       self._view_offset = self._$view.offset().top - self._$clip.offset().top;
-                                       self._view_height = self._getViewHeight();
-                               })
                                .bind( "pageshow", function ( e ) {
                                        /* should be called after pagelayout */
                                        setTimeout( function () {
+                                               self._view_height = self._getViewHeight();
                                                self._set_scrollbar_size();
                                                self._setScrollPosition( self._sx, self._sy );
                                                self._showScrollBars( 2000 );