diff options
| author | jmoenig <jens@moenig.org> | 2013-04-27 09:33:09 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-04-27 09:33:09 +0200 |
| commit | 966d9ee24e420857f7f8afe3b7aef057efb2e9b6 (patch) | |
| tree | 476ac0501a789e9424779afcf7387633e05d1546 /blocks.js | |
| parent | 2d1e450c8f7738e02776e05e290acaa85b64478b (diff) | |
| download | snap-966d9ee24e420857f7f8afe3b7aef057efb2e9b6.tar.gz snap-966d9ee24e420857f7f8afe3b7aef057efb2e9b6.zip | |
Fixed #70
Diffstat (limited to 'blocks.js')
| -rw-r--r-- | blocks.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2766,6 +2766,7 @@ CommandBlockMorph.prototype.snap = function () { this.startLayout(); if (target.loc === 'bottom') { if (target.type === 'slot') { + this.removeHighlight(); target.element.nestedBlock(this); } else { target.element.nextBlock(this); @@ -2782,6 +2783,7 @@ CommandBlockMorph.prototype.snap = function () { } } } else if (target.loc === 'top') { + target.element.removeHighlight(); offsetY = this.bottomBlock().bottom() - this.bottom(); this.setBottom(target.element.top() + this.corner - offsetY); this.setLeft(target.element.left()); |
