Scrollview : change scrollbar draw
authorJinhyuk Jun <jinhyuk.jun@samsung.com>
Wed, 13 Mar 2013 06:12:47 +0000 (15:12 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Fri, 22 Mar 2013 11:20:36 +0000 (20:20 +0900)
empty page skip to draw scrollbar

Change-Id: I657852b8e3101e1662979cfb4f4ea308c615703b

src/js/jquery.mobile.tizen.scrollview.js

index a82745c..bb7630e 100644 (file)
@@ -1332,10 +1332,10 @@ define( [ ], function ( ) {
                                vh = this._getViewHeight();
                                this._maxY = ch - vh;
 
-                               if ( this._maxY > 0 ) {
+                               if ( this._maxY > 0 || vh === 0 ) {
                                        this._maxY = 0;
                                }
-                               if ( this._$vScrollBar && vh ) {
+                               if ( ( this._$vScrollBar && vh ) || vh === 0 ) {
                                        thumb = this._$vScrollBar.find(".ui-scrollbar-thumb");
                                        thumb.css( "height", (ch >= vh ? "0" :
                                                        (Math.floor(ch / vh * 100) || 1) + "%") );