From 8cc84b874f79cc1e140eb11f854c060c60d84d62 Mon Sep 17 00:00:00 2001 From: dykstrad Date: Wed, 18 Mar 2015 09:46:45 -0600 Subject: [PATCH] Update README.md Update new version, add comment about how to work with variable width tables. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 26a9f39..47b69ed 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -colResize 0.0.5 +colResize 0.0.6 ========= A DataTables plugin for dynamic resizing of columns @@ -23,6 +23,8 @@ ColResize is initialised using the `Z` option that it adds to DataTables' `dom` ColResize supports both fixed width tables and variable width tables. Fixed width table splits the column width difference between itself and its neighbour column. Variable width tables increase/decreases the width of the table the same amount as the column being resized. +In order for a variable width tables to work, the table needs to be wrapped in a container that allows the table to resize. +One way is to wrap it in a div that has a style of overflow-x: auto. By default it is fixed width, for variable set tableWidthFixed to false: $(document).ready( function () {