facebook

Content Area Height

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #330632 Reply

    Pieter_K
    Participant

    Hi there,

    I wonder how I can change the content area height of a panel with code…

    add a panel (height=50),
    drop a text. (height =10)
    Now change that text dynamically from the custom.js with some lorum ipsum so it will grow out of the panel
    (height should grow bigger then 50.. Say 150 for this test with our new inserted lorum ipsum text)..

    $('#m1-test-page-textholder').text("your lorum ipsum here etc etc.....");

    Hope you still with me..

    Now my brain tels me.. Lets get the new height:

    var textheight = $('#m1-test-page-textholder').height()

    And give that height to the panel so we can use the scrollbar and read the new inserted text in that panel:

    $('#m1-test-page-panel1-scroller').height(textheight);

    Now this wont work..

    if you do:

    alert(textheight);

    still tells 10px height…

    What should we do to change the content area height dynamically from within our custom.js?

    Anyway, hope I am clear with my explantion and question..

    Thanx in advance

    #330790 Reply

    Hi Pieter_K,

    Please see next thread with a similar issue:
    http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=3605

    As you can see you, we don’t have a quick solution identified yet. But, are investigating how we can best address it.

    #330817 Reply

    support-michael
    Keymaster

    >What should we do to change the content area height dynamically from within our custom.js?

    Discussing with the dev team to confirm my understanding. But I think the text size is fixed and dynamcially adding longer content that overflows the predefined text area will clip it to the bounds of the text widget. My understanding is you need a dynamic flow layout that grows and shrinks with arbitrary text content that is laid out with wrapping, right? I’m discussing with the dev team if/how this is possible.

    #330827 Reply

    Pieter_K
    Participant

    yes 🙂 I want the content area height to grow height with the text that will dynamicly placed in it (or whatever items you put in it (Lists, other panels, text etc).

    #330833 Reply

    Max87
    Member

    Hi Pieter_K,
    I would suggest you to look at this topic http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=1858&hilit=dynamically
    It’s about adding custom list and setting panel height dynamically.
    This is working for me.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Content Area Height

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