pull/29/head
jmoenig 2016-12-01 13:49:09 +01:00
rodzic dd51470239
commit cbced3a81a
2 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -3967,6 +3967,7 @@ CommandBlockMorph.prototype.userDestroy = function () {
}
var scripts = this.parentThatIsA(ScriptsMorph),
parent = this.parentThatIsA(SyntaxElementMorph),
cslot = this.parentThatIsA(CSlotMorph);
// for undrop / redrop
@ -3981,6 +3982,9 @@ CommandBlockMorph.prototype.userDestroy = function () {
if (cslot) {
cslot.fixLayout();
}
if (parent) {
parent.reactToGrabOf(this); // fix highlight
}
};
CommandBlockMorph.prototype.userDestroyJustThis = function () {
@ -3990,6 +3994,7 @@ CommandBlockMorph.prototype.userDestroyJustThis = function () {
pb,
nb = this.nextBlock(),
above,
parent = this.parentThatIsA(SyntaxElementMorph),
cslot = this.parentThatIsA(CSlotMorph);
// for undrop / redrop
@ -4022,6 +4027,9 @@ CommandBlockMorph.prototype.userDestroyJustThis = function () {
} else if (cslot) {
cslot.fixLayout();
}
if (parent) {
parent.reactToGrabOf(this); // fix highlight
}
};
// CommandBlockMorph drawing:

Wyświetl plik

@ -3159,3 +3159,4 @@ http://snap.berkeley.edu/run#cloud:Username=jens&ProjectName=rotation
* GUI: fixed #1540
* Morphic, Blocks, GUI: Filter Project Names in the “open” dialog, thanks, Bernat!!
* GUI: update scrollbars of the project dialog as the project list is filtered
* Blocks: fixed #1522