Bugfix
This commit is contained in:
parent
616f745bbd
commit
2b29c007bc
@ -65,7 +65,7 @@ class LayoutCard extends Polymer.Element {
|
||||
} else {
|
||||
let colWidth = this.config.column_width || 300;
|
||||
numcols = Math.max(1,
|
||||
this.$ ? Math.floor(this.parentElement.clientWidth/this.config.column_width) : 0);
|
||||
this.parentElement ? Math.floor(this.parentElement.clientWidth/this.config.column_width) : 0);
|
||||
}
|
||||
numcols = Math.min(numcols, this.config.max_columns);
|
||||
if(numcols != this.colnum) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user