Support width attribute on tree view

issue7503
review53271003
This commit is contained in:
Diego Abad
2018-06-19 10:48:34 +02:00
parent 445d340425
commit e781efb4f2
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -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
+6 -1
View File
@@ -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(