I am having a view like mentioned below and i am adding lot of views dynamically to the contents view and the problem is scrollbar is not getting visible. So i drilled down aa bit and i found that the content's height is not getting updated after i have added the views dynamically.
What am i doing wrong here? The same code is working properly in Openlaszlo 3.3
<view name="wrapper">
<view name="scrollablecontainer"
width="${this.contentwrapper.width > parent.width
? this.contentwrapper.width : parent.width}"
height="${this.contentwrapper.height > parent.height
? this.contentwrapper.height : parent.height}">
<view name="contentwrapper" >
<view name="contents"/>
</view>
</view>
<vscrollbarnew name="vscroll"
height="${this.height}"
pagesize="${this.height}"
visible="${this.scrollable}"/>
</view>
I missed out one thing when the component initializes i am setting contentwrapper width and height to 0.
Runtime : swf Test browser: firefox, windows xp
Your structure looks very complicated. Why do you have a contentwrapper and a contents view. I've created an example which compiles in both OpenLaszlo 3.4 (swf7 and swf8) and OpenLaszlo 5.0 trunk (SWF10 and DHTML). I've set clipping to true on the
wrapperview and added a layout to the viewscrollablecontainerinto which the dynamically created views will be added.The view named
wrappershould have clipping enabled, and needs to have a value set for width and height. By clicking the checkbox you can toggle the value of theclipattribute for the wrapper to see the effect.Here's the app running in OpenLaszlo 5.0 trunk SWF10:
And here the same code running in OpenLaszlo 3.4 SWF8: