mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Fix # Columns algo
This commit is contained in:
parent
5c73313cc5
commit
a8d3b71f9f
@ -117,7 +117,8 @@ 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.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
|
// When user changes tab by pressing back button, blur former tab
|
||||||
|
Loading…
x
Reference in New Issue
Block a user