Merge pull request #267 from nathan/drop-down-menu-alignment

Fixed alignment of drop-down menus when blocks are zoomed
This commit is contained in:
Shane M. Clements 2014-06-18 12:11:32 +02:00
commit ca19712706

View file

@ -190,8 +190,8 @@ public class BlockMenus implements DragClient {
m.color = block.base.color;
m.itemHeight = 22;
if (blockArg) {
var p:Point = blockArg.localToGlobal(new Point(0, 0));
m.showOnStage(app.stage, p.x - 9, p.y + blockArg.height);
var p:Point = blockArg.localToGlobal(new Point(0, blockArg.height));
m.showOnStage(app.stage, p.x - 9, p.y);
} else {
m.showOnStage(app.stage);
}