We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1c8814 commit b7bca5fCopy full SHA for b7bca5f
1 file changed
core/field_expandable_add.js
@@ -72,6 +72,7 @@ Blockly.FieldExpandableAdd.prototype.init = function() {
72
}
73
Blockly.FieldExpandableAdd.superClass_.init.call(this);
74
75
+ const ratio = Blockly.BlockSvg.FIELD_HEIGHT / 32;
76
this.size_.width = Blockly.BlockSvg.FIELD_HEIGHT;
77
this.overrideSep = 1;
78
this.boxGroup_ = Blockly.utils.createSvgElement('g', {}, null);
@@ -93,8 +94,8 @@ Blockly.FieldExpandableAdd.prototype.init = function() {
93
94
{
95
'x': 5,
96
'y': 5,
- 'width': this.size_.width / 1.5,
97
- 'height': this.size_.height / 1.5,
+ 'width': (this.size_.width / 1.5) * ratio,
98
+ 'height': (this.size_.height / 1.5) * ratio,
99
'xlink:href': plusIcon,
100
'href': plusIcon,
101
},
0 commit comments