keep reporter-result-bubbles within the enclosing scripting pane

pull/3/merge
jmoenig 2014-07-29 13:16:01 +02:00
rodzic 0cc14e2861
commit bfdbeca146
2 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -1627,6 +1627,7 @@ SyntaxElementMorph.prototype.showBubble = function (value) {
img, img,
morphToShow, morphToShow,
isClickable = false, isClickable = false,
sf = this.parentThatIsA(ScrollFrameMorph),
wrrld = this.world(); wrrld = this.world();
if ((value === undefined) || !wrrld) { if ((value === undefined) || !wrrld) {
@ -1694,6 +1695,9 @@ SyntaxElementMorph.prototype.showBubble = function (value) {
this.rightCenter().add(new Point(2, 0)), this.rightCenter().add(new Point(2, 0)),
isClickable isClickable
); );
if (sf) {
bubble.keepWithin(sf);
}
}; };
// SyntaxElementMorph code mapping // SyntaxElementMorph code mapping

Wyświetl plik

@ -2249,3 +2249,4 @@ ______
* updated Portuguese translation, thanks, Manuel! * updated Portuguese translation, thanks, Manuel!
* updated German translation * updated German translation
* Morphic: fixed #497 (prevent bubble shadows from getting cut-off) * Morphic: fixed #497 (prevent bubble shadows from getting cut-off)
* Blocks: keep result-bubbles within the enclosing scripting pane