Hello everyone,
We encountered an issue when using the Radzen Tree component. We created the Tree inside a Card and changed the font size, as shown in the code below.
<RadzenCard Style="background-color: #7b89b7; max-height: 232px; border-radius: 0;">
<RadzenTree style="max-height: 200px;">
<RadzenTreeItem Text="Item 1">
<ChildContent>
<RadzenTreeItem Text="lala"/>
<RadzenTreeItem Text="lala"/>
<RadzenTreeItem Text="lala"/>
</ChildContent>
</RadzenTreeItem>
<RadzenTreeItem Text="Item 2">
<ChildContent>
<RadzenTreeItem Text="lala"/>
<RadzenTreeItem Text="lala"/>
<RadzenTreeItem Text="lala"/>
</ChildContent>
</RadzenTreeItem>
<RadzenTreeItem Text="Item 3">
<ChildContent>
<RadzenTreeItem Text="lala"/>
<RadzenTreeItem Text="lala"/>
<RadzenTreeItem Text="lala"/>
</ChildContent>
</RadzenTreeItem>
</RadzenTree>
</RadzenCard>
<style>
body {
--rz-body-font-size: 0.8rem;
}
</style>
After changing the font size, a vertical scrollbar appears in the Tree. It disappears only when the last item is expanded, even though the scrollbar is not needed when all items are collapsed.
How can we hide the unnecessary scrollbar while still allowing it to appear when needed (for example, when some Tree items are expanded and there is not enough space in the Card)?
Thank you in advance for your help.