don't assume config

pull/21833/head
Bruno Windels 2018-10-18 15:51:01 +02:00
parent c1e602d56f
commit a910f46c5b
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class FixedDistributor {
this.sizer = sizer; this.sizer = sizer;
this.item = item; this.item = item;
this.beforeOffset = sizer.getItemOffset(this.item); this.beforeOffset = sizer.getItemOffset(this.item);
this.onResized = config.onResized; this.onResized = config && config.onResized;
} }
resize(offset) { resize(offset) {