Fixed #4889 - Splitter: aria-valuenow calculation defect

pull/4899/head
tugcekucukoglu 2023-11-28 16:22:27 +03:00
parent 47c4cad9c5
commit 3d3fbf69ed
1 changed files with 1 additions and 2 deletions

View File

@ -133,13 +133,12 @@ export default {
newNextPanelSize = this.nextPanelSize - newPos; newNextPanelSize = this.nextPanelSize - newPos;
} }
this.prevSize = parseFloat(newPrevPanelSize).toFixed(4);
if (this.validateResize(newPrevPanelSize, newNextPanelSize)) { if (this.validateResize(newPrevPanelSize, newNextPanelSize)) {
this.prevPanelElement.style.flexBasis = 'calc(' + newPrevPanelSize + '% - ' + (this.panels.length - 1) * this.gutterSize + 'px)'; this.prevPanelElement.style.flexBasis = 'calc(' + newPrevPanelSize + '% - ' + (this.panels.length - 1) * this.gutterSize + 'px)';
this.nextPanelElement.style.flexBasis = 'calc(' + newNextPanelSize + '% - ' + (this.panels.length - 1) * this.gutterSize + 'px)'; this.nextPanelElement.style.flexBasis = 'calc(' + newNextPanelSize + '% - ' + (this.panels.length - 1) * this.gutterSize + 'px)';
this.panelSizes[this.prevPanelIndex] = newPrevPanelSize; this.panelSizes[this.prevPanelIndex] = newPrevPanelSize;
this.panelSizes[this.prevPanelIndex + 1] = newNextPanelSize; this.panelSizes[this.prevPanelIndex + 1] = newNextPanelSize;
this.prevSize = parseFloat(newPrevPanelSize).toFixed(4);
} }
this.$emit('resize', { originalEvent: event, sizes: this.panelSizes }); this.$emit('resize', { originalEvent: event, sizes: this.panelSizes });