From bb3374f9c7fb0cfaf84b2d5d2d2a37dd5536523e Mon Sep 17 00:00:00 2001 From: Mohit <81846020+MohitGupta14@users.noreply.github.com> Date: Sun, 6 Aug 2023 23:08:52 +0530 Subject: [PATCH] Solving rendering problems during the trash events (#3322) * Solving rendering problems during the trash events * Fixing spacing --- js/activity.js | 4 ++++ js/blocks.js | 3 +++ 2 files changed, 7 insertions(+) diff --git a/js/activity.js b/js/activity.js index 18e58cf91d..9148dfba7e 100644 --- a/js/activity.js +++ b/js/activity.js @@ -1243,6 +1243,8 @@ class Activity { this.setSmallerLargerStatus(); } + this.activity.refreshCanvas(); + document.getElementById('hideContents').click(); }; /* @@ -1269,6 +1271,8 @@ class Activity { } this.setSmallerLargerStatus(); + this.activity.refreshCanvas(); + document.getElementById('hideContents').click(); }; /* diff --git a/js/blocks.js b/js/blocks.js index f82b30248c..baff1399e9 100644 --- a/js/blocks.js +++ b/js/blocks.js @@ -6823,6 +6823,9 @@ class Blocks { this._cleanupStacks(); this.activity.refreshCanvas(); } + this.activity.refreshCanvas(); + this.activity.trashcan.stopHighlightAnimation(); + document.getElementById('hideContents').click(); }; /***