Skip to content

Conversation

@classix-od
Copy link

@classix-od classix-od commented Sep 27, 2017

The old plugin measured the width of a cell assuming that cell contents consist only of text. If any cell included DOM elements such divs, styling elements, images ... etc. the plugin would compute false widths. In my update, the code computes the width of the cell contents using JQuery's width() method.

Furthermore, the update respects custom column resizing and skipped the computation of column width in the case of the user had changed the width of a column himself.

minWidth and maxWidth are now respected.

The dependency on lodash is eliminated because it's no more needed.

The dependencies were updated to the latest versions and the webpack configuration file was changed accordingly.

tsconfig.js was also minorly modified to save the output of the TypeScript compiler in a separate folder within dist.

To avoid tsc -d errors I marked all interfaces with an "export".

The build process does not show any errors now.

@classix-od classix-od force-pushed the html_width branch 3 times, most recently from 46a0f1c to ec1d40f Compare October 10, 2017 15:30
The plugin handles now rows including HTML elements and not only text. Lodash is no more needed.
Fixed build errors, updated dependancies to lastest versions, generated files are all under /dist
minWidth and maxWidth are now respected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant