I'm using OpenLaszlo 3.2 and I'm having trouble getting a view to scroll.   
I have a view which displays a bunch of dynamically built checkboxes.  I  
want to limit the number of checkboxes that are visible at any one time.   
Conceptually the layout looks something like this:


Categories:     [ ] Cat 1      /\
                 [ ] Cat 2      ||
                 [ ] Cat 3      ||
                 [ ] Cat 4      ||
                 [ ] Cat 5      \/

with possibly more categories below.  My current code looks something like  
this:

<view>
        <simplelayout axis="x" spacing="3"/>
        <text width="200">Categories</text>
        <view id="categoryDisplay">
                <view id="checkboxes" height="100" clip="true">
                        <simplelayout axis="y" spacing="2"/>
                        <view name="category" 
datapath="categories:/categories/*">
                                <checkboxWithValue text="$path{'@name'}" 
name="$path{'@name'}"  
itemValue="$path{'@id'}"/>
                        </view> 
                </view>
                <vscrollbar/>
        </view>
</view>

This displays correctly, but the scrollbar is inactive and doesn't let me  
scroll.  My assumption is that the scrollbar doesn't know how many  
checkboxes were created and therefore doesn't know that it needs to  
scroll.  Can someone help me out with getting this to work?

Thanks!
-- 
James Howe

Contact: http://public.xdi.org/=James.Howe

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to