mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Updates function call
This commit is contained in:
@@ -275,7 +275,7 @@ Blockly.Mutator.prototype.setVisible = function(visible) {
|
||||
this.rootBlock_.setDeletable(false);
|
||||
if (this.workspace_.flyout_) {
|
||||
var margin = this.workspace_.flyout_.CORNER_RADIUS * 2;
|
||||
var x = this.workspace_.getFlyout_().getWidth() + margin;
|
||||
var x = this.workspace_.getFlyout().getWidth() + margin;
|
||||
} else {
|
||||
var margin = 16;
|
||||
var x = margin;
|
||||
@@ -394,10 +394,10 @@ Blockly.Mutator.prototype.workspaceChanged_ = function(e) {
|
||||
Blockly.Mutator.prototype.getFlyoutMetrics_ = function() {
|
||||
return {
|
||||
viewHeight: this.workspaceHeight_,
|
||||
viewWidth: this.workspaceWidth_ - this.workspace_.getFlyout_().getWidth(),
|
||||
viewWidth: this.workspaceWidth_ - this.workspace_.getFlyout().getWidth(),
|
||||
absoluteTop: 0,
|
||||
absoluteLeft: this.workspace_.RTL ? 0 :
|
||||
this.workspace_.getFlyout_().getWidth()
|
||||
this.workspace_.getFlyout().getWidth()
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user