mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
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:
committed by
Rachel Fenichel
parent
dbda2eab58
commit
5fe2bc66eb
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user