Fixed #1461 - pFrozenColumn is moving when position set to left
parent
63b1d95667
commit
32d23d01e9
|
@ -1618,7 +1618,14 @@ export default {
|
||||||
this.d_columnOrder = columnOrder;
|
this.d_columnOrder = columnOrder;
|
||||||
},
|
},
|
||||||
updateScrollWidth() {
|
updateScrollWidth() {
|
||||||
this.$refs.table.style.width = DomHandler.width(this.$refs.table.parentElement) - DomHandler.calculateScrollbarWidth() + 'px';
|
let parentElementHeight = DomHandler.width(this.$refs.table.parentElement);
|
||||||
|
|
||||||
|
if (this.$refs.table.scrollWidth > parentElementHeight) {
|
||||||
|
this.$refs.table.style.width = this.$refs.table.scrollWidth + 'px';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this.$refs.table.style.width = parentElementHeight - DomHandler.calculateScrollbarWidth() + 'px';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
createResponsiveStyle() {
|
createResponsiveStyle() {
|
||||||
if (!this.styleElement) {
|
if (!this.styleElement) {
|
||||||
|
|
Loading…
Reference in New Issue