mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Fixed alignment of drop-down menus when blocks are zoomed
This commit is contained in:
parent
5132c96eb2
commit
d9f416672e
1 changed files with 3 additions and 3 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);
|
||||
}
|
||||
|
@ -399,7 +399,7 @@ public class BlockMenus implements DragClient {
|
|||
m.addItem('record...', recordSound);
|
||||
showMenu(m);
|
||||
}
|
||||
|
||||
|
||||
private function recordSound():void {
|
||||
app.setTab('sounds');
|
||||
app.soundsPart.recordSound();
|
||||
|
|
Loading…
Reference in a new issue