David-Desmaisons / Vue.D3.tree

Vue component to display tree based on D3.js layout.
https://david-desmaisons.github.io/Vue.D3.tree/tree
MIT License
874 stars 136 forks source link

The svg didn't stop to expanded #2

Closed taciomedeiros closed 7 years ago

taciomedeiros commented 7 years ago

i use this configs, and make one div that limits the max-height, but the problem continues. Could you help me? <d3tree :data="animal.genealogia" :type="tree" :layout-type="euclidean" :duration="5" :margin-y="150" :zoomable="false"> </d3tree>

taciomedeiros commented 7 years ago

I see on the example that you put a class on d3tree object with max-height thanks

David-Desmaisons commented 7 years ago

@taciomedeiros , by design the component will take all available space respecting the margin value. This means that you need to specify in the HTML whether max-height or heigth and wether max-width or width.