Scrollview : calculate excluding padding in innerScrollview(DCM-2223)
authorJinhyuk Jun <jinhyuk.jun@samsung.com>
Thu, 25 Jul 2013 04:16:06 +0000 (13:16 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Mon, 29 Jul 2013 01:58:30 +0000 (01:58 +0000)
Change-Id: I83f31c86885458cf07028f47e6bad744914c1162

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

index 883876a..304a2fb 100644 (file)
@@ -1515,6 +1515,11 @@ define( [
                                                cw = $c.outerWidth(),
                                                scroll_x,
                                                scroll_y;
+
+                                       if ( !$( self.element ).is( ".ui-content" ) ) {
+                                               view_w = $v.width();
+                                               cw = $c.width();
+                                       }
                                        if ( self._sy < clip_h - view_h ) {
                                                scroll_y = clip_h - view_h;
                                                scroll_x = 0;