mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
DataTable in expand mode resizing problem
This commit is contained in:
parent
4754753cf2
commit
43f857874e
1 changed files with 2 additions and 2 deletions
|
@ -1229,6 +1229,8 @@ export default {
|
||||||
!!el && (el.style.width = el.style.minWidth = tableWidth);
|
!!el && (el.style.width = el.style.minWidth = tableWidth);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Reasoning: resize table cells before updating the table width so that it can use existing computed cell widths and adjust only the one column.
|
||||||
|
this.resizeTableCells(newColumnWidth);
|
||||||
updateTableWidth(this.$refs.table);
|
updateTableWidth(this.$refs.table);
|
||||||
|
|
||||||
if (!this.virtualScrollerDisabled) {
|
if (!this.virtualScrollerDisabled) {
|
||||||
|
@ -1238,8 +1240,6 @@ export default {
|
||||||
updateTableWidth(body);
|
updateTableWidth(body);
|
||||||
updateTableWidth(frozenBody);
|
updateTableWidth(frozenBody);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.resizeTableCells(newColumnWidth);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$emit('column-resize-end', {
|
this.$emit('column-resize-end', {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue