From 967ee28769920e580467a9dbc37e8425b0050397 Mon Sep 17 00:00:00 2001 From: frankiefu Date: Tue, 9 Dec 2014 12:34:11 -0800 Subject: [PATCH] when receive resize event, invoke both scroll() and updateBar() --- paper-tabs.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/paper-tabs.html b/paper-tabs.html index 4e22845..1cf36ef 100644 --- a/paper-tabs.html +++ b/paper-tabs.html @@ -167,7 +167,7 @@ hideScrollButton: false, eventDelegates: { - 'core-resize': 'updateBar' + 'core-resize': 'resizeHandler' }, activateEvent: 'tap', @@ -217,6 +217,11 @@ this.$.tabsContainer.scrollLeft = this._startx - e.dx; }, + resizeHandler: function() { + this.scroll(); + this.updateBar(); + }, + scroll: function() { if (!this.scrollable) { return;