EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: korenanzo on March 24, 2016, 11:36:20 AM



Title: basic Tree and scrollbars
Post by: korenanzo on March 24, 2016, 11:36:20 AM
Tra basic example of Tree

http://www.jeasyui.com/demo/main/index.php?plugin=Tree&theme=default&dir=ltr&pitem=

shows that if I open the nodes and the tree expands, its container "easyui-tree" expands too:

Is it possible to have scrollbars in a tree instead of automatic expand/shrink ?

thanks,

RIc


Title: Re: basic Tree and scrollbars
Post by: stworthy on March 24, 2016, 11:36:55 PM
Please set a fixed 'height' for the container.
Code:
<div class="easyui-panel" style="height:200px;padding:5px">
    <ul class="easyui-tree">
    ...
    </ul>
</div>