Skip to content

Top half of block cut off when using a statement input inside a square reporter #919

@TheBrokenRail

Description

@TheBrokenRail

Expected Behavior

You see the whole block

Actual Behavior

The top half is cut off, statements offset, and bottom has no padding

Steps to Reproduce

Add my code to blocks_vertical/motion.js and and create the block

My Code

Blockly.Blocks['motion_lambda'] = {
  init: function() {
    this.jsonInit({
      "message0": "do %1",
      "message1": "and return %1",
      "args0": [
        {
          "type": "input_statement",
          "name": "FUNCTION"
        }
      ],
      "args1": [
        {
          "type": "input_value",
          "name": "RETURN"
        }
      ],
      "inputsInline": false,
      "category": Blockly.Categories.motion,
      "output": "String",
      "outputShape": Blockly.OUTPUT_SHAPE_SQUARE,
      "colour": Blockly.Colours.motion.primary,
      "colourSecondary": Blockly.Colours.motion.secondary,
      "colourTertiary": Blockly.Colours.motion.tertiary
    });
  }
};

Screenshot

block

Operating System and Browser

Google Chrome and Windows 10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions