Fix defining # columns

This commit is contained in:
Paulus Schoutsen 2016-04-01 00:33:27 -07:00
parent 4cf94f44b3
commit 3cf3f3e914

View File

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