0

Slickgrid seems to be ignoring the minWidth and maxWidth attributes. Am I missing something?

Note in the following jsFiddle, one of the columns has a width of 300 which is honored, while the other columns have minWidth and maxWidth set to 300 without any effect.

http://jsfiddle.net/ericjohannsen/ZSJEj/1/

Eric J.
  • 147,927
  • 63
  • 340
  • 553

1 Answers1

2

The minWidth & maxWidth only apply to column resizing operations or when the columns are auto-sized. You are still expected to specify the initial width.

UPDATED: I've added column width clamping to SlickGrid.

Tin
  • 9,082
  • 2
  • 34
  • 32
  • Could you elaborate on exactly what *column width clamping* means? – Eric J. Aug 06 '12 at 21:12
  • minWidth & maxWidth are now enforced on the initial render and the column width, whether specified explicitly or inherited from defaults, is forced to respect the bounds. – Tin Aug 06 '12 at 21:40