adopted-ember-addons / ember-paper

The Ember approach to Material Design.
https://ember-paper.netlify.app/
MIT License
888 stars 333 forks source link

Paper Tabs Pagination Always Visible #1170

Closed liammcd closed 1 year ago

liammcd commented 4 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