+
@@ -544,9 +543,9 @@
this.selected = 'main';
},
- ready: function() {
+ attached: function() {
// Avoid transition at the beginning e.g. page loads and enable
- // transitions only after the element is rendered and ready.
+ // transitions only after the element is rendered and attached.
this._transition = true;
},
@@ -567,22 +566,6 @@
});
},
- _computeDrawerStyle: function(drawerWidth) {
- return 'width:' + drawerWidth + ';';
- },
-
- _computeMainStyle: function(narrow, rightDrawer, drawerWidth) {
- var style = '';
-
- style += 'left:' + ((narrow || rightDrawer) ? '0' : drawerWidth) + ';';
-
- if (rightDrawer) {
- style += 'right:' + (narrow ? '' : drawerWidth) + ';';
- }
-
- return style;
- },
-
_computeMediaQuery: function(forceNarrow, responsiveWidth) {
return forceNarrow ? '' : '(max-width: ' + responsiveWidth + ')';
},
@@ -611,10 +594,8 @@
_responsiveChange: function(narrow) {
this._setNarrow(narrow);
-
- if (this.narrow) {
- this.selected = this.defaultSelected;
- }
+
+ this.selected = this.defaultSelected;
this.setScrollDirection(this._swipeAllowed() ? 'y' : 'all');
this.fire('paper-responsive-change', {narrow: this.narrow});