From b42b608cfbcc5985cc2ddea3a98833b8df9b54ea Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 15 Jun 2021 14:26:04 +0200 Subject: [PATCH] fixed #2850 (occasional invisible error message) thanks, Ken, for the bug report! --- HISTORY.md | 6 ++++++ snap.html | 2 +- src/blocks.js | 6 +++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 6b3e4dfc..9fb3eb9f 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,11 @@ ## in development: +* **New Features:** + * new extension primitives +* **Notable Fixes:** + * fixed occasional invisible error messages + ### 2021-06-15 * extensions: tweaked world-map primitives * updated maps library @@ -14,6 +19,7 @@ ' extensions: added tts * updated text-to-speech library * updated bar-charts library +* fixed #2850 (occasional invisible error message), thanks, Ken, for the bug report! ### 2021-06-14 * new dev version diff --git a/snap.html b/snap.html index a02fae7b..19cbb729 100755 --- a/snap.html +++ b/snap.html @@ -8,7 +8,7 @@ - + diff --git a/src/blocks.js b/src/blocks.js index 452e07ef..e85bb344 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -158,7 +158,7 @@ CustomCommandBlockMorph, ToggleButtonMorph, DialMorph, SnapExtensions*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2021-June-14'; +modules.blocks = '2021-June-15'; var SyntaxElementMorph; var BlockMorph; @@ -2095,11 +2095,11 @@ SyntaxElementMorph.prototype.showBubble = function (value, exportPic, target) { img, morphToShow, isClickable = false, - ide = this.parentThatIsA(IDE_Morph), + ide = this.parentThatIsA(IDE_Morph) || target.parentThatIsA(IDE_Morph), anchor = this, pos = this.rightCenter().add(new Point(2, 0)), sf = this.parentThatIsA(ScrollFrameMorph), - wrrld = this.world(); + wrrld = this.world() || target.world(); if ((value === undefined) || !wrrld) { return null;