This commit is contained in:
Timur Gibadullin 2017-07-06 14:05:00 +03:00
parent e99beff4b5
commit 85c55a8071

View File

@ -47,7 +47,7 @@ export default class SortableList extends Component {
/**
* Stores promises of rows layouts.
*/
_rowsLayouts = [];
_rowsLayouts = {};
_resolveRowLayout = {};
_contentOffset = {x: 0, y: 0};
@ -289,7 +289,7 @@ export default class SortableList extends Component {
}
_onUpdateLayouts() {
Promise.all([this._footerLayout, ...this._rowsLayouts])
Promise.all([this._footerLayout, ...Object.values(this._rowsLayouts)])
.then(([footerLayout, ...rowsLayouts]) => {
// Can get correct containers layout only after rowss layouts.
this._container.measure((x, y, width, height, pageX, pageY) => {