ng2-tree
ng2-tree copied to clipboard
Container Overflow causes wrong Position of Elements
Hi. I want to place the Tree inside a Container with limited width (e.g. col-2 in Bootstraps grid system). However if i have an element which needs more space (from the example: named a node 'Michael Jacksonnnnnnnnnnnnnnnnn'), there is a blank line inserted above the element and the element gets horizontally aligned with its parent. I already added per CSS 'overflow: auto' to different elements (container, tree-container, tree-content and even the inside the tree-tag itself, but the misplacement happens before the overflow bar occures. See screenshot for more details:
@karstensgit Could you, please, reproduce this bug in here https://stackblitz.com/ ?
this bug has sovled?
sorry, i completely forgot about this: unfortunately i am not able to setup a stackblitz reproduction, because stackblitz wont let me use the newest package version. If i enter the dependency it will always install v1.0.0. I am new to stackblitz, is there a solution for this?
basically you can reproduce this by opening the demo app and adding "width: 150px" to any of the
<div class="tree-content">
elements.