Skip to content

Commit ab35026

Browse files
author
Cedric Franke
committed
Build features to use component in web-component-designer #4 --> fix sizing and interval
1 parent 98e1d1a commit ab35026

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/slider/AutomaticSliderShowWebcomponent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class AutomaticSliderShowWebcomponent extends BaseCustomWebComponentConst
2323
2424
.slideshow-container{
2525
grid-area: 1 / 1 / 2 / 2;
26-
width: calc(100% - 20px);
26+
width: 100%;
2727
height: 100%;
2828
border: 1px solid grey;
2929
overflow: hidden;
@@ -109,7 +109,7 @@ export class AutomaticSliderShowWebcomponent extends BaseCustomWebComponentConst
109109

110110
connectedCallback() {
111111
this._observer.observe(this, { childList: true });
112-
this._interval = parseInt(this.getAttribute('interval'));
112+
this._interval = parseInt(this.getAttribute('interval')) || this._interval;
113113
this._initializeSlider();
114114
}
115115

0 commit comments

Comments
 (0)