Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alignment problem in ix-tree with limited width #681

Closed
Heino-S opened this issue Aug 9, 2023 · 1 comment · Fixed by #1428
Closed

Alignment problem in ix-tree with limited width #681

Heino-S opened this issue Aug 9, 2023 · 1 comment · Fixed by #1428
Labels
Workflow: Issue created JIRA issue is created and will be analyzed

Comments

@Heino-S
Copy link

Heino-S commented Aug 9, 2023

What happened?

Using an ix-tree control within an area/window with limited width (in our case in an as-split-area) and long node names disturbs the alignment of the tree nodes. See red marked tree nodes in the picture enclosed (left part: enough space; right part: limited width).
ix-tree-alignment

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

Angular

Which version of iX do you use?

v1.6.3

Code to produce this issue.

<as-split direction="horizontal">
    <as-split-area [size]="20">
      <ix-tree [model]="treeData.treeModel"
               [root]="treeData.rootNodeId"
               [renderItem]="treeItem"
               (contextChange)="onContextChange($event)">
      </ix-tree>
    </as-split-area>
    <as-split-area [size]="80">
       Something else is shown here
    </as-split-area>
</as-split>

<ng-template #treeItem let-item>
  <div class="d-flex align-items-center">
    <ix-icon [name]="item.icon" size="16" class="me-2"></ix-icon>
    {{ item.name }}
  </div>
</ng-template>
@Heino-S Heino-S added the triage We discuss this topic in our internal weekly label Aug 9, 2023
@silviowolf silviowolf added the Workflow: Issue created JIRA issue is created and will be analyzed label Oct 11, 2023
@danielleroux danielleroux removed the triage We discuss this topic in our internal weekly label Jan 26, 2024
@matthiashader matthiashader linked a pull request Aug 20, 2024 that will close this issue
8 tasks
@matthiashader
Copy link
Collaborator

Should be fixed with #1428

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Workflow: Issue created JIRA issue is created and will be analyzed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants