kopia lustrzana https://github.com/shoelace-style/shoelace
prettier
rodzic
e8908201c2
commit
ad2478bce7
|
@ -1742,4 +1742,4 @@ The following pages demonstrate why this change was necessary.
|
||||||
|
|
||||||
## 2.0.0-beta.1
|
## 2.0.0-beta.1
|
||||||
|
|
||||||
- Initial release
|
- Initial release
|
||||||
|
|
|
@ -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
|
// There's some weird logic that gets `this.cachedPositionInPixels = NaN` or `this.position === Infinity` when
|
||||||
// a split-panel goes from `display: none;` to showing.
|
// a split-panel goes from `display: none;` to showing.
|
||||||
if (isNaN(this.cachedPositionInPixels) || this.position === Infinity) {
|
if (isNaN(this.cachedPositionInPixels) || this.position === Infinity) {
|
||||||
this.cachedPositionInPixels = Number(this.getAttribute("position-in-pixels"))
|
this.cachedPositionInPixels = Number(this.getAttribute('position-in-pixels'));
|
||||||
this.positionInPixels = Number(this.getAttribute("position-in-pixels"))
|
this.positionInPixels = Number(this.getAttribute('position-in-pixels'));
|
||||||
this.position = this.pixelsToPercentage(this.positionInPixels);
|
this.position = this.pixelsToPercentage(this.positionInPixels);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue