Use Jqmobi to develop app base scrolling use, drag a lot of blank after the solution

Source: Internet
Author: User

In the use of Jqmobi development app Base: Scrolling use, drag up, dynamic add data in the article, through the use of af.scroller.js to solve the pull refresh, drop-down add data function, but very strange, after many times after the drop, hair bottom of the blank more and more!!

The basic page panel code is as follows:

<div id= "JIEKUANSHENPI" title= "Loan Approval" class= "Panel" data-load= "Loadfirstpage
                " data-tab= "Navbar_picture" data-nav= "main"  data-defer= "jiekuanshenpi.html"  >  
                     
            </div>

The jiekuanshenpi.html code is as follows:

<ui class= "list" id= "Jiekuanshenpigrid" ></ui>  
<script type= "Text/javascript" >  
   //omitted JS code  
            </script>

Omitted the JS code specific reference to use Jqmobi development app Base: Scrolling use, drag up and down, dynamic add data

After a number of pull down drag, dynamic loading data, found that the bottom of the gap is more and more large, and finally may exceed the height of the data. This thought is the height of the panel calculation error, but set height and worry about changing the other logic, think the final method is really so simple, remove the following sentence can be:

$ ("#" + Listpaneid). CSS ("Overflow", "Auto");

This is originally a demo inside the code, unexpectedly will bring me such a big trouble, at present only found this solution, very simple, also did not find out there are other adverse consequences.

Author: csdn Blog xuexiaodong2009

Back to the column page: http://www.bianceng.cnhttp://www.bianceng.cn/OS/extra/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.