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

@@ -11,7 +11,7 @@ import {Slides, Slide, SlidePager, List, Item, ActionMenu, Modal, ModalRef,
})
@View({
template: `
<ion-navbar *navbar><ion-title>Cards</ion-title></ion-navbar>
<ion-navbar *navbar><ion-title>Sink</ion-title></ion-navbar>
<ion-content class="padding">
<h2>Slides</h2>

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';