Fix # Columns algo

This commit is contained in:
Paulus Schoutsen 2016-04-07 21:59:59 -07:00
parent 5c73313cc5
commit a8d3b71f9f

View File

@ -117,7 +117,8 @@ export default new Polymer({
windowChange() {
const matchColumns = this.mqls.reduce((cols, mql) => cols + mql.matches, 0);
this.columns = Math.max(1, matchColumns - !this.narrow);
// Do -1 column if the menu is docked and open
this.columns = Math.max(1, matchColumns - (!this.narrow && this.showMenu));
},
// When user changes tab by pressing back button, blur former tab