Fixed #4889 - Splitter: aria-valuenow calculation defect
parent
47c4cad9c5
commit
3d3fbf69ed
|
@ -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 });
|
||||||
|
|
Loading…
Reference in New Issue