changeset dafcaa643ca5 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=dafcaa643ca5
description:
        Do not use width attribute on column

        If all columns have it, the widths will be distributed to a all columns 
even
        the select column.

        issue8219
        review271111002
diffstat:

 src/view/tree.js |  6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diffs (16 lines):

diff -r 11d19fd57f89 -r dafcaa643ca5 src/view/tree.js
--- a/src/view/tree.js  Tue Apr 02 18:19:08 2019 +0200
+++ b/src/view/tree.js  Thu Apr 04 19:13:20 2019 +0200
@@ -414,11 +414,7 @@
                         'boolean': 2,
                         'binary': 20,
                     }[column.attributes.widget] || 10;
-                    if (column.attributes.width !== undefined){
-                        width = column.attributes.width + 'px';
-                    } else {
-                        width = width * 100 + '%';
-                    }
+                    width = width * 100 + '%';
                     column.col.css('width', width);
                     column.col.show();
                 }

Reply via email to