PDA

View Full Version : Tree is not clipped by the scrollbars


ninja
09-13-2005, 06:12 AM
I face against the old problem. The scrollbars do not clip the tree. Does anybody have a solution to the problem?
Thanks in advance...

objectid
09-29-2005, 02:57 AM
Place the tree in a nested view with reduced width and height that match the scrollbars dimensions.

<view name="treeView" height="${immediateparent.height}" width="${immediateparent.seperator.x}" clip="true">

<view width="${mainTree.width+16}" height="${mainTree.height+16}">
<tree id="mainTree" showroot="true" autoscroll="true" clip="true" icon="null"
<tree clip="true" autoscroll="true" icon="null">
</tree>
</tree>
</view>

<hscrollbar visible="${scrollable}" />
<vscrollbar visible="${scrollable}" />
</view>