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