drawio
drawio copied to clipboard
Tables with merged cells bug out with "Resize Last Column"
Preflight Checklist
- [x] I agree to follow the Code of Conduct that this project adheres to.
- [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Describe the bug
If you try to turn on the "Resize Last Column" property (AKA resizelast=1;
in the Edit Style dialog) for a table that has merged cells, it will cause the table to expand and the display of said table to bug out. If "Resize Last Column" is already enabled, then you can merge one set of cells without issue, but the second set will cause the same behavior. In either case, disabling "Resize Last Column" will restore the table to it's proper display, but at the new wider width. Continuously toggling this setting while there are merged cells will cause the table to grow indefinitely.
To Reproduce Steps to reproduce the behavior:
- Go to 'https://draw.io'
- Click on 'Decide Later' for the storage options
- Add a new table of any size above 2x2 using the "Table Tool" from the toolbar.
- Merge any 2 or more cells using either the "Merge" button in the "Arrange" tab, or the "Colspan" property.
- Enable the "Resize Last Column" property.
- See error
Expected behavior Nothing should happen when that setting is enabled or disabled, and the Resize Last Column function should work as otherwise when the table is resized.
Screenshots
Before Enabling "Resize Last Column":
After enabling "Resize Last Column":
draw.io version (In the Help->About menu of the draw.io editor):
- draw.io version 24.4.3
Desktop (please complete the following information):
- OS: Windows 10 Pro
- Browser Google Chrome
- Browser Version 124.0.6367.208 (Official Build) (64-bit)
I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:
- yes
Additional context Note that this issue does not happen with "Resize Last Row".