From bfdbeca146f8d58e1f15b2b85f4feae2687d1d9f Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 29 Jul 2014 13:16:01 +0200 Subject: keep reporter-result-bubbles within the enclosing scripting pane --- blocks.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'blocks.js') diff --git a/blocks.js b/blocks.js index 6ab6781..5a15fa4 100644 --- a/blocks.js +++ b/blocks.js @@ -1627,6 +1627,7 @@ SyntaxElementMorph.prototype.showBubble = function (value) { img, morphToShow, isClickable = false, + sf = this.parentThatIsA(ScrollFrameMorph), wrrld = this.world(); if ((value === undefined) || !wrrld) { @@ -1694,6 +1695,9 @@ SyntaxElementMorph.prototype.showBubble = function (value) { this.rightCenter().add(new Point(2, 0)), isClickable ); + if (sf) { + bubble.keepWithin(sf); + } }; // SyntaxElementMorph code mapping -- cgit v1.3.1