pull/1942/head
konnorrogers 2024-03-26 16:34:13 -04:00
rodzic e8908201c2
commit ad2478bce7
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -1742,4 +1742,4 @@ The following pages demonstrate why this change was necessary.
## 2.0.0-beta.1
- Initial release
- Initial release

Wyświetl plik

@ -192,8 +192,8 @@ export default class SlSplitPanel extends ShoelaceElement {
// There's some weird logic that gets `this.cachedPositionInPixels = NaN` or `this.position === Infinity` when
// a split-panel goes from `display: none;` to showing.
if (isNaN(this.cachedPositionInPixels) || this.position === Infinity) {
this.cachedPositionInPixels = Number(this.getAttribute("position-in-pixels"))
this.positionInPixels = Number(this.getAttribute("position-in-pixels"))
this.cachedPositionInPixels = Number(this.getAttribute('position-in-pixels'));
this.positionInPixels = Number(this.getAttribute('position-in-pixels'));
this.position = this.pixelsToPercentage(this.positionInPixels);
}