ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

GridOptions.minimumColumnSize is not taken into account

Open mearing opened this issue 11 years ago • 4 comments

Looking at the API docs for Grid options (http://ui-grid.info/docs/#/api/ui.grid.class:GridOptions) there is an option of minimumColumnSize. This doesn't seem to be taken into account.

Searching through the code base for "minimumColumnSize" yields no actual logic. I think it soulld be taken into account in the updateColumnWidths method in GridRenderContainer: https://github.com/angular-ui/ng-grid/blob/master/src/js/core/factories/GridRenderContainer.js#L595

A plunkr example: http://plnkr.co/edit/zpOUTXlSXCvbPbwOu0yZ

mearing avatar Jul 06 '15 15:07 mearing

+1 on this ...

veljkopopovic avatar Jul 23 '15 09:07 veljkopopovic

It seems the actual setting is minWidth http://ui-grid.info/docs/#/api/ui.grid.class:GridOptions.columnDef

It seems that the code and the docs need to be updated in order to fix this.

JLLeitschuh avatar Jul 29 '15 19:07 JLLeitschuh

The fix can't be to remove the option, right? I assumed the purpose of this option was to avoid having to specify a minWidth or width on every single column individually (annoying if you have lots of columns).

xentopos avatar Sep 28 '15 15:09 xentopos

+1

betsydupuis avatar Feb 15 '16 18:02 betsydupuis