This commit is contained in:
Max Lynch
2015-06-03 16:05:24 -05:00
parent 9c748c34c4
commit 8519b8b223
2 changed files with 3 additions and 1 deletions

View File

@ -95,6 +95,8 @@ export class Slides {
// that the user will actually see.
this.containerWidth = this.domElement.offsetWidth || this.domElement.getBoundingClientRect().width;
console.log('Computed container width', this.containerWidth);
// Set the wrapper element to the total width of the child elements
this.wrapperElement.style.width = ((this.containerWidth * this.slides.length)) + 'px';