From a8d3b71f9f721b84be0522c566f3a70e0d119597 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 7 Apr 2016 21:59:59 -0700 Subject: [PATCH] Fix # Columns algo --- src/layouts/partial-cards.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layouts/partial-cards.js b/src/layouts/partial-cards.js index 54db3d415b..3d4d0a093a 100644 --- a/src/layouts/partial-cards.js +++ b/src/layouts/partial-cards.js @@ -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