Skip to content

Commit

Permalink
make sliderHeight reactive
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerwyn committed Jul 27, 2024
1 parent 794cce4 commit 203da66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/android-tv-card.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/classes/remote-slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export class RemoteSlider extends BaseRemoteElement {
@state() thumbOffset: number = 0;
@state() sliderOn: boolean = true;
@state() currentValue = this.value;
@state() sliderWidth: number = 0;

oldValue?: number;
newValue?: number;
Expand All @@ -20,7 +21,6 @@ export class RemoteSlider extends BaseRemoteElement {

vertical: boolean = false;
thumbWidth: number = 50;
sliderWidth: number = 0;
resizeObserver = new ResizeObserver((entries) => {
for (const entry of entries) {
this.sliderWidth = this.vertical
Expand Down

0 comments on commit 203da66

Please sign in to comment.