diff --git a/paper-drawer-panel.html b/paper-drawer-panel.html
index 8dc8b1e..eb0126d 100644
--- a/paper-drawer-panel.html
+++ b/paper-drawer-panel.html
@@ -468,8 +468,7 @@
* If true, position the drawer to the right.
*/
rightDrawer: {
- type: Boolean,
- value: false
+ type: Boolean
},
/**
@@ -513,6 +512,11 @@
'_forceNarrowChanged(forceNarrow, defaultSelected)'
],
+ attached: function() {
+ if (this.rightDrawer === undefined)
+ this.rightDrawer = this._isRTL();
+ },
+
/**
* Toggles the panel open and closed.
*
@@ -550,6 +554,10 @@
this._transition = true;
},
+ _isRTL: function() {
+ return window.getComputedStyle(this).direction === 'rtl';
+ },
+
_onMainTransitionEnd: function (e) {
if (e.currentTarget === this.$.main && (e.propertyName === 'left' || e.propertyName === 'right')) {
this.notifyResize();
diff --git a/test/positioning.html b/test/positioning.html
index f70c2cf..7c21614 100644
--- a/test/positioning.html
+++ b/test/positioning.html
@@ -28,10 +28,10 @@