mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
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:
commit
ca19712706
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue