From 9348c8a23b71fb577dd471671eec2f118e29fabc Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 20 Oct 2020 16:07:47 +0100 Subject: [PATCH] Fix some widget auto tiling issues Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/rooms/AppsDrawer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/AppsDrawer.js b/src/components/views/rooms/AppsDrawer.js index 1b0d5aaf90..ce45ffe092 100644 --- a/src/components/views/rooms/AppsDrawer.js +++ b/src/components/views/rooms/AppsDrawer.js @@ -153,7 +153,7 @@ export default class AppsDrawer extends React.Component { try { const [[...lastIds], ...sizes] = JSON.parse(localStorage.getItem(this._getStorageKey())); // Every app was included in the last split, reuse the last sizes - if (this.state.apps.length <= lastIds.length && this.state.apps.every(app => lastIds.includes(app.id))) { + if (this.state.apps.length <= lastIds.length && this.state.apps.every((app, i) => lastIds[i] === app.id)) { sizes.forEach((size, i) => { const distributor = this.resizer.forHandleAt(i); if (distributor) { @@ -171,6 +171,7 @@ export default class AppsDrawer extends React.Component { console.log("@@ full relaxation"); const distributors = this.resizer.getDistributors(); distributors.forEach(d => d.item.clearSize()); + distributors.forEach(d => d.start()); distributors.forEach(d => d.finish()); } };