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 |
|
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. |
|
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. |
|
There you go: https://codepen.io/vozvik/pen/bGKaQGV Maybe I'm doing something wrong? |
|
It should work without any extra API calls from your side, I will look into it. |
|
Thanks for looking into this Martin. |
|
The fix works, thank you! 🎆 |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions