mirror of
https://github.com/google/blockly.git
synced 2026-01-09 18:10:08 +01:00
Fix right aligned Flyout buttons when workspace is scaled
This commit is contained in:
@@ -365,7 +365,7 @@ Blockly.VerticalFlyout.prototype.reflowInternal_ = function() {
|
||||
// With the flyoutWidth known, right-align the buttons.
|
||||
for (var i = 0, button; button = this.buttons_[i]; i++) {
|
||||
var y = button.getPosition().y;
|
||||
var x = flyoutWidth - button.width - this.MARGIN -
|
||||
var x = flyoutWidth / this.workspace_.scale - button.width - this.MARGIN -
|
||||
Blockly.BlockSvg.TAB_WIDTH;
|
||||
button.moveTo(x, y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user