Fixed Mutator Flyout Being Positioned Incorrectly RTL (#2378)

* Fixed mutator flyout being positioned incorrectly.

* Changed flyout_horizonal and flyout_vertical to check this.targetWorkspace_.toolboxPosition instead of targetWorkspaceMetrics.toolboxPosition.
This commit is contained in:
Beka Westberg
2019-04-15 10:02:07 -07:00
committed by Rachel Fenichel
parent dbda2eab58
commit 5fe2bc66eb
2 changed files with 2 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ Blockly.HorizontalFlyout.prototype.position = function() {
// X is always 0 since this is a horizontal flyout.
var x = 0;
// If this flyout is the toolbox flyout.
if (targetWorkspaceMetrics.toolboxPosition == this.toolboxPosition_) {
if (this.targetWorkspace_.toolboxPosition == this.toolboxPosition_) {
// If there is a toolbox.
if (targetWorkspaceMetrics.toolboxHeight) {
if (this.toolboxPosition_ == Blockly.TOOLBOX_AT_TOP) {

View File

@@ -152,7 +152,7 @@ Blockly.VerticalFlyout.prototype.position = function() {
// Y is always 0 since this is a vertical flyout.
var y = 0;
// If this flyout is the toolbox flyout.
if (targetWorkspaceMetrics.toolboxPosition == this.toolboxPosition_) {
if (this.targetWorkspace_.toolboxPosition == this.toolboxPosition_) {
// If there is a category toolbox.
if (targetWorkspaceMetrics.toolboxWidth) {
if (this.toolboxPosition_ == Blockly.TOOLBOX_AT_LEFT) {