当tree是多层时,遇到滚动条不能正常使用的问题(其实是自己的写法问题)。
正确写法:
<view width="170" height="208" x="5" clip="true">
<view clip="true" height="${treeroot.height+20}" width="${treeroot.width+20}">
<tree name="treeroot" autoscroll="true" datapath="...." open="true" text="测试" multiselect="false">
<tree autoscroll="true" x="-30" icon="null" datapath="*" text="$path{'Name/text()'}" isleaf="true" >
<method event="onclick">
<![CDATA[
..........
]]>
</method>
</tree>
<method event="onclick">
<![CDATA[
...................
]]>
</method>
</tree>
</view>
<scrollbar visible="${scrollable}"/>
<scrollbar axis="x" visible="${scrollable}"/>
</view>