diff --git a/CHANGELOG b/CHANGELOG index 4deec8ed18..786f6761af 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,4 @@ +* Add support of width attribute on tree view * Use non conflicting keyboard shortcuts * Use the context to get the suffix of window name * Call on_change methods after setting default dtstart on calendar view diff --git a/src/view/tree.js b/src/view/tree.js index d28966645c..1e557f77c5 100644 --- a/src/view/tree.js +++ b/src/view/tree.js @@ -424,7 +424,12 @@ 'boolean': 2, 'binary': 20, }[column.attributes.widget] || 10; - column.col.css('width', width * 100 + '%'); + if (column.attributes.width !== undefined){ + width = column.attributes.width + 'px'; + } else { + width = width * 100 + '%'; + } + column.col.css('width', width); } }.bind(this)); this.tbody.find('tr.more-row > td').attr(