Skip to content

Commit

Permalink
IE Bug fix - changed slide width from % to px. pr pawelgrzybek#212
Browse files Browse the repository at this point in the history
  • Loading branch information
brabli committed Nov 7, 2021
1 parent 1a78fd1 commit 90d50a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/siema.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export default class Siema {
const elementContainer = document.createElement('div');
elementContainer.style.cssFloat = this.config.rtl ? 'right' : 'left';
elementContainer.style.float = this.config.rtl ? 'right' : 'left';
elementContainer.style.width = `${this.config.loop ? 100 / (this.innerElements.length + (this.perPage * 2)) : 100 / (this.innerElements.length)}%`;
elementContainer.style.width = `${this.selectorWidth}%`;
elementContainer.appendChild(elm);
return elementContainer;
}
Expand Down

0 comments on commit 90d50a6

Please sign in to comment.