miguelcobain / ember-paper

The Ember approach to Material Design.
http://miguelcobain.github.io/ember-paper
MIT License
889 stars 331 forks source link

Paper Tabs Pagination Always Visible #1170

Closed liammcd closed 8 months ago

liammcd commented 3 years ago

The pagination arrows for paper-tabs are always visible, even when there is enough space to display every tab. this.set('shouldPaginate', wrapperWidth > canvasWidth); is always returning true due to let wrapperWidth = this.element.querySelector('md-pagination-wrapper').offsetWidth; always return 999999 Overriding md-pagination-wrapper { width: auto !important } causes wrapperWidth == canvasWidth so the pagination controls don't show up when needed