Skip to content

Commit

Permalink
fix tabs next navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcobain committed Jul 20, 2017
1 parent 9591c1a commit 8544228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/components/paper-tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default Component.extend(ParentMixin, ColorMixin, {

nextPage() {
let tab = this.get('childComponents').find((t) => {
return t.get('left') + t.get('width') > this.get('canvasWidth');
return t.get('left') + t.get('width') - this.get('currentOffset') > this.get('canvasWidth');
});
if (tab) {
this.set('currentOffset', tab.get('left'));
Expand Down

0 comments on commit 8544228

Please sign in to comment.