Skip to content

Commit

Permalink
cant fix positions yet :(
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyMakesThings authored Feb 14, 2024
1 parent dbcef01 commit 636ed1f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions core/field_angle.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,21 +252,10 @@ Blockly.FieldAngle.prototype.showEditor_ = function() {
Blockly.DropDownDiv.setCategory(this.sourceBlock_.parentBlock_.getCategory());
Blockly.DropDownDiv.showPositionedByBlock(this, this.sourceBlock_);
} else {
// Calculate positioning based on the field position.
var scale = this.sourceBlock_.workspace.scale;
var bBox = {width: this.size_.width, height: this.size_.height};
bBox.width *= scale;
bBox.height *= scale;
var position = this.fieldGroup_.getBoundingClientRect();
var primaryX = position.left + bBox.width / 2;
var primaryY = position.top + bBox.height;
var secondaryX = primaryX;
var secondaryY = position.top;

Blockly.DropDownDiv.setColour(this.sourceBlock_.getColour(),
this.sourceBlock_.getColourTertiary());
Blockly.DropDownDiv.setCategory(this.sourceBlock_.getCategory());
Blockly.DropDownDiv.show(this, this.sourceBlock_);
Blockly.DropDownDiv.showPositionedByBlock(this, this.sourceBlock_);
}

this.mouseDownWrapper_ =
Expand Down

0 comments on commit 636ed1f

Please sign in to comment.