Fixed #4890 - v2 DataTable: Frozen column table left and right calculation defects

pull/5039/head
tugcekucukoglu 2023-11-28 18:16:26 +03:00
parent 7708c6ae62
commit 04520ee45e
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}