You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Fix some widget auto tiling issues
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -153,7 +153,7 @@ export default class AppsDrawer extends React.Component {
|
|||||||
try {
|
try {
|
||||||
const [[...lastIds], ...sizes] = JSON.parse(localStorage.getItem(this._getStorageKey()));
|
const [[...lastIds], ...sizes] = JSON.parse(localStorage.getItem(this._getStorageKey()));
|
||||||
// Every app was included in the last split, reuse the last sizes
|
// 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) => {
|
sizes.forEach((size, i) => {
|
||||||
const distributor = this.resizer.forHandleAt(i);
|
const distributor = this.resizer.forHandleAt(i);
|
||||||
if (distributor) {
|
if (distributor) {
|
||||||
@@ -171,6 +171,7 @@ export default class AppsDrawer extends React.Component {
|
|||||||
console.log("@@ full relaxation");
|
console.log("@@ full relaxation");
|
||||||
const distributors = this.resizer.getDistributors();
|
const distributors = this.resizer.getDistributors();
|
||||||
distributors.forEach(d => d.item.clearSize());
|
distributors.forEach(d => d.item.clearSize());
|
||||||
|
distributors.forEach(d => d.start());
|
||||||
distributors.forEach(d => d.finish());
|
distributors.forEach(d => d.finish());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user