I have a suggestion for the dhtmlxLayout control.
It would be really neat to be able to specify min and max width and height limits for each of the cells in the layout.
So you would be able to collapse/stretch the cell - but only so far.
As soon as the cell reached the min or max width or height, it would stop collapsing/stretching.
Sensible defaults would be 0 for the min - equivalent to clicking the “collapse” button itself.
And the max default would be set to the maximum available height/width for that cell (which I’m sure you calculate anyway).
It’s just I can see a situation whereby you might want to prevent a user from shrinking (or growing) a particular part of the layout beyond a certain size (obviously, if they had the “collapse” button available they would be able to override the minimum - the min and max would only be relevant for when the user was dragging).
Problem confirmed. Functionality will added in future release.
Hello,
I’m using version 3.0 of the layout component and I was wondering if the functionnality described in the post above is now implemented.
Regards,
Loïc
Hello,
there are _minWidth and _minHeight private properties that are 40 by default. They define the minimum size for all layout cells. You may redefine these values if you wish:
dhxLayout._minWidth = 50;
Hello,
Thanks for your quick answer. Is it possible to set different minimum widths (e.g one for each cell) ?
Regards,
Loïc
Hello Loïc,
there is not such a possibility