Replies: 8 comments
-
This example does a a similar thing (if I understand your issue correctly): Does your CSS styles assure that the tree's |
Beta Was this translation helpful? Give feedback.
-
Thanks for the hint. Style does set width to 100%, so this helps with resizing the header row and the node title column, however, the rest of the columns just doesn't react. I'll try to put a small page together to demonstrate the issue. |
Beta Was this translation helpful? Give feedback.
-
Even without the page to demo the issue I'm seeing, without using Winbox.js, just resizing the browser window: it can be reproduced if you modify the demo-grid and make any additional column either "*" or 1 (or 2) wide besides the rightmost one. Header row resizes well but not the rows.
Looks the same on Safari and Chrome. |
Beta Was this translation helpful? Give feedback.
-
There you go: https://codepen.io/vozvik/pen/bGKaQGV Maybe I'm doing something wrong? |
Beta Was this translation helpful? Give feedback.
-
It should work without any extra API calls from your side, I will look into it. |
Beta Was this translation helpful? Give feedback.
-
Thanks for looking into this Martin. |
Beta Was this translation helpful? Give feedback.
-
The fix works, thank you! 🎆 |
Beta Was this translation helpful? Give feedback.
-
Fixed via #9 |
Beta Was this translation helpful? Give feedback.
-
Hi Martin, really nice work on Wunderbaum/Fancytree.
I tried instantiating a treegrid where columns don't have a fixed (e.g. "100px") width but rather an integer number indicating a weight.
I embedded the grid into a winbox.js window that is resizable and wondering how I can trigger recalculation of column widths?
Calling
Wunderbaum.updateColumns()
seems to only regenerate the header row but not the rest of the viewport.I also tried
Wunderbaum.setModified("any")
but it does not seem to make a difference.Edit: the first/leftmost column width is updated but not the rest.
Currently using 0.1.0.
Thank you!
Cheers,
Viktor
Beta Was this translation helpful? Give feedback.
All reactions