Fixed #4890 - v2 DataTable: Frozen column table left and right calculation defects
parent
7708c6ae62
commit
04520ee45e
|
@ -351,7 +351,7 @@ export default {
|
|||
}
|
||||
else {
|
||||
let left = 0;
|
||||
let prev = this.$el.previousElementSibling;
|
||||
let prev = DomHandler.getPreviousElementSibling(this.$el, '.p-frozen-column');
|
||||
if (prev) {
|
||||
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ export default {
|
|||
}
|
||||
else {
|
||||
let left = 0;
|
||||
let prev = this.$el.previousElementSibling;
|
||||
let prev = DomHandler.getPreviousElementSibling(this.$el, '.p-frozen-column');
|
||||
if (prev) {
|
||||
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue