siemens / ix

Siemens Industrial Experience is a design system for designers and developers, to consistently create the perfect digital experience for industrial software products.
https://ix.siemens.io/
MIT License
174 stars 62 forks source link

To move the scrollbar to currently selected ix-tree item as the current position in ix-tree is not saved persistently, #1044

Open NikhilSurana-k opened 5 months ago

NikhilSurana-k commented 5 months ago

What happened?

The current position of selected item in ix-tree is not saved persistently, In our case each time the Items or sub items are selected in ix-tree,the entire component(i.e. TOC) is reloading, and the postion of scroll bar jumps back to the top.Here,we need to capture the scroll bar positon and set it back i.e. the ix tree should give an option to set the scroll bar position.

(We have more that 20,000 tree items to render in different hierarchy)

https://github.com/siemens/ix/assets/153581221/18efad95-2246-48c3-a8bd-50124c5c2515

What type of frontend frameware are you seeing the problem on?

Angular

Which version of iX do you use?

siemens/ix-angular: "1.6.3",siemens/ix-brand-theme: "1.2.0", siemens/ix-icons: "1.1.2".

Code to produce this issue.

<div class="navigation" *ngIf="model">
  <ix-tree id="treeItems" class="toc" root="root" [model]="model" [context]="context" [renderItem]="treeItem">
  </ix-tree>
  <ng-template #treeItem let-item>
    <div class="customtreeItem" (click)="openTopic(item.url)" (keydown)="{}" (keyup)="{}">
      <div>
        <ix-icon [name]="item.icon" size="20" class="me-2"></ix-icon>
      </div>
      <span class="truncatedContent" title={{item.name}}>
        {{ item.name }}
      </span>
    </div>
  </ng-template>
</div>
matthiashader commented 4 months ago

Internal ref [IX-870]

NikhilSurana-k commented 4 months ago

Hi @matthiashader,

Could you kindly elaborate on what does 'Internal ref [IX-870]' means and provide additional details and update on the above topic?

Thanks.

matthiashader commented 4 months ago

Hello @NikhilSurana-k , we are currently trying to collect all our requirements and prioritize them, the assigned number is only an internal reference for tracking purposes during this stage. Please be patient with us as this process will take some time. At the moment there is no up to date information on this matter. However, please be assured that we will be in discussions and that we will keep you informed of any developments promptly.

NikhilSurana-k commented 1 month ago

Hi @matthiashader ,

Kindly provide an update on the above issue.

Thanks.