The new ones will limit only the auto resize feature (maybe we can call them "autoSizeMin" and "autoSizeMax"?) and will not limit the user to manually change the size over/under the auto size limits.
The normal size limits still apply and auto size should respect them too.
Problem:
I'm using the
columnAutoSize()
function after adding the columns and records to the grid. https://github.com/vitmalina/w2ui/blob/2b1c43d3b57cc30db37aca4af084281e928a1a88/src/w2grid.js#L3853This causes problems with very large values where the column can get very wide and unusable.![image](https://github.com/vitmalina/w2ui/assets/21219388/e090e106-98d0-4025-b28a-d93b626eb898)
Currently I can set the column "max" and it limits the auto size, but it also limits the user to size up the column.
Proposed solution:
Can we add max and min limits for the auto size feature?
Is NOT the same as the existing column "min" and "max": https://github.com/vitmalina/w2ui/blob/2b1c43d3b57cc30db37aca4af084281e928a1a88/src/w2grid.js#L212-L213 These apply when user resizes the columns manually.
The new ones will limit only the auto resize feature (maybe we can call them "autoSizeMin" and "autoSizeMax"?) and will not limit the user to manually change the size over/under the auto size limits. The normal size limits still apply and auto size should respect them too.