Skip to content

Commit

Permalink
[FIX] sticky column bug, sometimes eclipsing editable fields
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspaulb committed Mar 10, 2021
1 parent c7b8fda commit 539bf68
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ openerp.web_widget_x2many_2d_matrix_freeze = function (instance) {
this.stickyHead.width(this.stickyTable.width());

// Set width of sticky table col
this.stickyCol.find("th").add(
this.stickyInsct.find("th")
).width(this.stickyTable.find("thead th").width());
this.stickyCol.find("tr:eq(0) th, tr:eq(0) td").each(function (i) {
$(this)
.add(self.stickyInsct.find("th,td").eq(i))
.width(self.stickyTable.find("thead th, thead td").eq(i).width());
});
},

reposition_sticky_head: function () {
Expand Down Expand Up @@ -172,7 +174,6 @@ openerp.web_widget_x2many_2d_matrix_freeze = function (instance) {
col = _table.find("tbody").clone();

// Add class, remove margins, reset width and wrap table
console.log('adding');
_table
.addClass("sticky-enabled")
.wrap("<div class=\"sticky-wrap\" />");
Expand Down

0 comments on commit 539bf68

Please sign in to comment.