Skip to content

Commit 2bab8b2

Browse files
committed
Exclude image field from positioning fix
1 parent bb622ea commit 2bab8b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/block_render_svg_vertical.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ Blockly.BlockSvg.prototype.renderFields_ =
625625
}
626626
// In blocks with a notch, non-label fields should be bumped to a min X,
627627
// to avoid overlapping with the notch.
628-
if (this.previousConnection && !(field instanceof Blockly.FieldLabel)) {
628+
if (this.previousConnection && !(field instanceof Blockly.FieldLabel) && !(field instanceof Blockly.FieldImage)) {
629629
cursorX = this.RTL ?
630630
Math.min(cursorX, -Blockly.BlockSvg.INPUT_AND_FIELD_MIN_X) :
631631
Math.max(cursorX, Blockly.BlockSvg.INPUT_AND_FIELD_MIN_X);

0 commit comments

Comments
 (0)