Index: third_party/polymer/v1_0/components-chromium/paper-tabs/paper-tabs-extracted.js |
diff --git a/third_party/polymer/v1_0/components-chromium/paper-tabs/paper-tabs-extracted.js b/third_party/polymer/v1_0/components-chromium/paper-tabs/paper-tabs-extracted.js |
index d0b6e91abe1e11a7eb1d8ff894fb62720e97d227..9711b0ef6dac2e31512c6f507664682f3eb412d4 100644 |
--- a/third_party/polymer/v1_0/components-chromium/paper-tabs/paper-tabs-extracted.js |
+++ b/third_party/polymer/v1_0/components-chromium/paper-tabs/paper-tabs-extracted.js |
@@ -66,14 +66,6 @@ Polymer({ |
value: false |
}, |
- /** |
- * Gets or sets the selected element. The default is to use the index of the item. |
- */ |
- selected: { |
- type: String, |
- notify: true |
- }, |
- |
selectable: { |
type: String, |
value: 'paper-tab' |
@@ -275,7 +267,13 @@ Polymer({ |
// bar animation: expand |
this.$.selectionBar.classList.add('expand'); |
- if (oldIndex < index) { |
+ var moveRight = oldIndex < index; |
+ var isRTL = this._isRTL; |
+ if (isRTL) { |
+ moveRight = !moveRight; |
+ } |
+ |
+ if (moveRight) { |
this._positionBar(this._calcPercent(tabRect.left + tabRect.width - oldRect.left, w) - m, |
this._left); |
} else { |