Skip to content

Commit

Permalink
fix block being too big
Browse files Browse the repository at this point in the history
  • Loading branch information
jwklong committed Nov 16, 2024
1 parent 8d97014 commit 659df41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/block_render.js
Original file line number Diff line number Diff line change
Expand Up @@ -1588,7 +1588,7 @@ Blockly.BlockSvg.prototype.renderDrawLeft_ = function(steps) {
// Draw a half-plus.
let unit = 6
let remainingHeight = this.edgeShapeWidth_ * 2 - 36
let remainingWidth = this.edgeShapeWidth_ * 2 - 40
let remainingWidth = this.edgeShapeWidth_ - 20
steps.push(
`l -${remainingWidth} 0 ` +
`a ${unit} ${unit} 0 0 1 -${unit} -${unit} ` +
Expand Down Expand Up @@ -1635,7 +1635,7 @@ Blockly.BlockSvg.prototype.drawEdgeShapeRight_ = function(steps) {
// Draw a half-plus.
let unit = 6
let remainingHeight = this.edgeShapeWidth_ * 2 - 36
let remainingWidth = this.edgeShapeWidth_ * 2 - 40
let remainingWidth = this.edgeShapeWidth_ - 20
steps.push(
`l ${remainingWidth} 0 ` +
`a ${unit} ${unit} 0 0 1 ${unit} ${unit} ` +
Expand Down

0 comments on commit 659df41

Please sign in to comment.