facebook

Scrolling not working with Custom list

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 9 posts - 31 through 39 (of 39 total)
  • Author
    Posts
  • #335203

    @tteasdale,

    I have just followed up with you by email, please check file that I sent you and let me know how it goes for you.

    #335212

    tteasdale
    Member

    Octavio,
    I did not receive an email from you and which gives me great concern to the security of my applications code if it was arbitrarily sent to an incorrect address. Please confirm the address to which the email was sent.

    #335240

    @tteasdale,

    Haven’t you received my email yet? Have you checked your spam folder? My reply was using our Ticket System, where I have replied you in the past informing that I got your files, so, it is weird to me find out that you have not received my last email.

    #335241

    tteasdale
    Member

    Yes, I checked my spam folder, even again today, and have nothing. Perhaps the the size of the attached file you returned to me is larger than what gmail allows? Just a thought.

    #335243

    I don’t think the size of file would be the problem as I only sent you the custom.js file modified. I have just sent you other email to confirm that you are received it

    If you feel comfortable, send me an email to my personal email and I will response with the attachment to this new email.

    #335269

    tteasdale
    Member

    Octavio,
    Did you receive the email that I sent directly to you?

    #335289

    @tteasdale,

    I have replied your email this morning. Please confirm if you received it.

    #335313

    tteasdale
    Member

    Octavio,
    I did receive your email and your solution was exactly that…a solution. I appreciate your help and I have posted below the associated code for others that may be encountering the same issue:

    //Update panel’s content height, set the ht value on the panel’s
    // scroller <div> data-layout-content-height attribute.
    // panelHt = header ht + listItems ht + footer ht
    var panelHt = 59 + itemCnt * 59;
    $(‘#m1-MyProject-panel1-scroller’).attr(‘data-layout-content-height’, panelHt);
    $(‘#m1-MyProject-panel1-scroller’).height(panelHt);
    $(‘#m1-MyProject-panel1-scroller’)[0].myScroll.refresh();

    phoneui.preprocessDOM(‘#m1-MyProject’);

    **************
    Though similar to the code suggested to another developer, the slight variances made the difference.
    I also wanted include your comments sent in your email as that was also most helpful:

    Octavio said:
    “Two things are significant here:
    1. Need either to set data-layout-content-height attribute and do manual iScroll refresh (second one required to update iScroll state immediately, first one – to keep this height when f.e. orientation changes)
    2. Panel’s height was calculated in wrong way – it assumes item’s height is 44px while real one was 59”

    Thanks for your help!!!!

    #335314

    @tteasdale,

    I’m glad that it resolved your situation, all credit is for Vadim (lead dev) who add the changes to make it work. As this was resolved I’m marking thread as closed.

Viewing 9 posts - 31 through 39 (of 39 total)
Reply To: Scrolling not working with Custom list

You must be logged in to post in the forum log in