From ad2478bce7b6bf0e99ebc3cf3a5d9e5b5252431b Mon Sep 17 00:00:00 2001 From: konnorrogers Date: Tue, 26 Mar 2024 16:34:13 -0400 Subject: [PATCH] prettier --- docs/pages/resources/changelog.md | 2 +- src/components/split-panel/split-panel.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/pages/resources/changelog.md b/docs/pages/resources/changelog.md index 40bc6cf1f0..41fb7dc9d4 100644 --- a/docs/pages/resources/changelog.md +++ b/docs/pages/resources/changelog.md @@ -1742,4 +1742,4 @@ The following pages demonstrate why this change was necessary. ## 2.0.0-beta.1 -- Initial release \ No newline at end of file +- Initial release diff --git a/src/components/split-panel/split-panel.component.ts b/src/components/split-panel/split-panel.component.ts index 66184e4532..bf8af30dfa 100644 --- a/src/components/split-panel/split-panel.component.ts +++ b/src/components/split-panel/split-panel.component.ts @@ -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); }