JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums General Discussions Scroll bar not visible for smart components in angular


Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #101855

    When the height of the smart component cannot show all the items it has then it’s expected to add a scroll bar especially when the height of the component is set and not auto, the scroll bar is not visible and I cannot view the overflowing contents. But if the height of the any of parent elements or that component itself is modified manually or programmatically after the component loads then it’s showing the scroll bar.
    Anyone else facing this issue? please help me I got stuck with this.


    Thought of providing more details. Below is the HTML code that using smart tree
    filterInputPlaceholder=”Search Categories”
    *ngFor=”let category of treeDataSource”
    [ngClass]=”{ selected: categorySelected === category.label }”
    {{ category.label }}
    CSS Style
    smart-tree {
    height: 100%;
    width: 100%;
    When I load the page, there is no scroll bar shown. but there are a lot of items that were hidden
    After I change the height of the parent element and reverted to the original height, the scroll bar is visible


    Hi santhosh,
    Testing with the information that you provided I was unable to reproduce the issue as you do.
    As far as I can comprehend from the shared info you have the smart-tree component in parent component and if the parent has a set height and the smart-tree component has overflowing items the scrollbar is visible.
    I have a little code example:

    <div class="tree-container">
       <smart-tree #tree id="tree" [scrollMode]="'scrollbar'" [selectionMode]="'oneOrMany'" [showLines]="true"></smart-tree>

    And in the CSS:

      height: 200px;
    smart-tree {
    	width: 100%;
    	height: 100%;

    Let me know if that works for you but if this is not the case it will be better to share a bit more context of your situation!
    Please, do not hesitate to contact us if you have any additional questions.
    Best regards,
    Yavor Dashev
    Smart UI Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.