Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
when receive resize event, invoke both scroll() and updateBar()
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Dec 9, 2014
1 parent bc32dc5 commit 967ee28
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion paper-tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
hideScrollButton: false,

eventDelegates: {
'core-resize': 'updateBar'
'core-resize': 'resizeHandler'
},

activateEvent: 'tap',
Expand Down Expand Up @@ -217,6 +217,11 @@
this.$.tabsContainer.scrollLeft = this._startx - e.dx;
},

resizeHandler: function() {
this.scroll();
this.updateBar();
},

scroll: function() {
if (!this.scrollable) {
return;
Expand Down

0 comments on commit 967ee28

Please sign in to comment.