- This topic has 4 replies, 4 voices, and was last updated 12 years, 1 month ago by Max87.
-
AuthorPosts
-
Pieter_KParticipantHi 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
support-octavioMemberHi Pieter_K,
Please see next thread with a similar issue:
http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=3605As you can see you, we don’t have a quick solution identified yet. But, are investigating how we can best address it.
support-michaelKeymaster>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.
Pieter_KParticipantyes 🙂 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).
Max87MemberHi 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. -
AuthorPosts