changeset 5ddc29f83683 in sao:5.0
details: https://hg.tryton.org/sao?cmd=changeset;node=5ddc29f83683
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
        (grafted from dafcaa643ca5d695a4a1f50bcef70c997d5d72bd)
diffstat:

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

diffs (16 lines):

diff -r b4b0a121644f -r 5ddc29f83683 src/view/tree.js
--- a/src/view/tree.js  Tue Apr 02 21:40:08 2019 +0200
+++ b/src/view/tree.js  Thu Apr 04 19:13:20 2019 +0200
@@ -443,11 +443,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