facebook

Dynamic changes to "Content Area Height"

💡
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 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #340579 Reply

    Stu Wade
    Member

    Is it possible to do this?

    I can obtain the value of the CAH by either

    $(‘#m1-screen-panel-scroller’).height(); //giving a numeric value

    Or

    $(‘#m1-screen-panel-scroller’).css(‘height’); // giving a string terminating in ‘px’

    However, attempts to change either of these by giving them an appropriate value, ie height(100) or css(‘height’,’100px’) do not appear to work.

    Am I attempting the impossible, or just failing to find the magic syntax?

    #340580

    Proffie
    Member

    Hi Stu,
    I saw something at the end of the Code of CincyPlanet example Notes

      var panelHt = 30 + itemCnt * 50;
                     $("#m1-NoteExample-panel1-scroller").height(panelHt);
                     phoneui.preprocessDOM("#m1-NoteExample");
                  });

    Is that what you are looking for? There is also something in the dynamic list demo of sixtosantos in the —custom.js file:

     var panel_ht = list_height * length + 15;
      $("div[id*=scroller]" ,  container).attr("data-layout-content-height", panel_ht);
      phoneui.preprocessDOM(list);
      phoneui.forceLayout();

    hope this helps
    Proffie

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Dynamic changes to "Content Area Height"

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