diff --git a/src/assets/menu/menu.json b/src/assets/menu/menu.json index f1d7e1619..85ef38a40 100644 --- a/src/assets/menu/menu.json +++ b/src/assets/menu/menu.json @@ -469,6 +469,7 @@ { "name": "TreeTable", "meta": ["treetable"], + "badge": "New", "children": [ { "name": "Documentation", @@ -510,6 +511,11 @@ "name": "Resize", "to": "/treetable/colresize" }, + { + "name": "Scroll", + "to": "/treetable/scroll", + "badge": "New" + }, { "name": "Responsive", "to": "/treetable/responsive" diff --git a/src/components/datatable/HeaderCell.vue b/src/components/datatable/HeaderCell.vue index dd414b106..2a32d7d75 100644 --- a/src/components/datatable/HeaderCell.vue +++ b/src/components/datatable/HeaderCell.vue @@ -153,7 +153,7 @@ export default { let right = 0; let next = this.$el.nextElementSibling; if (next) { - right = DomHandler.getOuterWidth(next) + parseFloat(next.style.left); + right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right); } this.styleObject.right = right + 'px'; } diff --git a/src/components/treetable/TreeTable.vue b/src/components/treetable/TreeTable.vue index cf2e89355..3167efa1b 100755 --- a/src/components/treetable/TreeTable.vue +++ b/src/components/treetable/TreeTable.vue @@ -17,12 +17,12 @@ -
+