Skip to content

Commit

Permalink
Fixed Mutator Flyout Being Positioned Incorrectly RTL (google#2378)
Browse files Browse the repository at this point in the history
* Fixed mutator flyout being positioned incorrectly.

* Changed flyout_horizonal and flyout_vertical to check this.targetWorkspace_.toolboxPosition instead of targetWorkspaceMetrics.toolboxPosition.
  • Loading branch information
BeksOmega authored and rachel-fenichel committed Apr 15, 2019
1 parent dbda2ea commit 5fe2bc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/flyout_horizontal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion core/flyout_vertical.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5fe2bc6

Please sign in to comment.