Skip to content

Commit

Permalink
since there is no 'width:99999999px' on md-pagination-wrapper anymore…
Browse files Browse the repository at this point in the history
… we can just mesure its width instead of the sum of its children
  • Loading branch information
panthony committed May 11, 2017
1 parent 76db201 commit 5cd07c9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions addon/components/paper-tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,7 @@ export default Component.extend(ColorMixin, ParentMixin, {
if (this.get('shouldStretchTabs')) {
pagingWidth = this.get('canvasWidth');
} else {
let $items = this.get('tabsWrapper').$('md-tab-item');
if ($items) {
$items.each((_, tab) => pagingWidth += tab.clientWidth);
}
pagingWidth = this.get('tabsWrapper').$('md-pagination-wrapper').prop('clientWidth');
}
this.set('pagingWidth', pagingWidth);
},
Expand Down

0 comments on commit 5cd07c9

Please sign in to comment.