Skip to content

Commit

Permalink
fix(ui5-tree): make the height of tree adjustable (#2546)
Browse files Browse the repository at this point in the history
FIXES #2545
  • Loading branch information
ilhan007 authored Dec 9, 2020
1 parent 65cb42f commit 1fc3180
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/main/src/Tree.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@ui5-item-click="{{_onListItemClick}}"
@ui5-item-delete="{{_onListItemDelete}}"
@ui5-selection-change="{{_onListSelectionChange}}"
class="ui5-tree-root"
>
<slot name="header" slot="header"></slot>
{{#each _listItems}}
Expand Down
9 changes: 7 additions & 2 deletions packages/main/src/themes/Tree.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
@import "./InvisibleTextStyles.css";

:host(:not([hidden])) {
display: block;
width: 100%;
display: block;
width: 100%;
}

.ui5-tree-root {
height: 100%;
width: 100%;
}

0 comments on commit 1fc3180

Please sign in to comment.