Skip to content

Commit

Permalink
fix: fix alignment of "define" text baseline on custom blocks (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonfunko authored Oct 14, 2024
1 parent 665d196 commit cc4d9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/render_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class RenderInfo extends Blockly.zelos.RenderInfo {

getElemCenterline_(row, elem) {
if (this.isBowlerHatBlock() && Blockly.blockRendering.Types.isField(elem)) {
return row.yPos + elem.height;
return row.yPos + row.height / 2;
} else if (
this.block_.isScratchExtension &&
Blockly.blockRendering.Types.isField(elem) &&
Expand Down

0 comments on commit cc4d9f9

Please # to comment.