Creating block with neither previousStatement nor nextStatement results in incorrectly displayed block icon.
See original GitHub issueI’m creating a starting block that has neither a previousStatement nor a nextStatement, since all blocks are to be placed as an input.
init: function() {
this.jsonInit({
"id": "[ID]",
"message0": "%1 %2",
"args0": [
{
"type": "input_statement",
"name": "SUBSTACK"
},
{
"type": "field_image",
"src": Blockly.mainWorkspace.options.pathToMedia + "icons/turtle/snow.svg",
"width": 40,
"height": 40,
"flip_rtl": false
}
],
"inputsInline": true,
"category": Blockly.Categories.turtle,
"colour": Blockly.Colours.control.primary,
"colourSecondary": Blockly.Colours.control.secondary,
"colourTertiary": Blockly.Colours.control.tertiary
});
}
It looks something like this: Notice that the icon isn’t correctly placed on the block.
If I add a line “previousStatement”:null, to the json, then the block looks like this: Notice that the icon is correctly placed on the block.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Create a block icon & block info block to display a ... - GitHub
I think I now have a need for a Block icon/info link . This will be a link to the documentation of the...
Read more >problems linking block icons - 12987 - Industry Support Siemens
I made a block icon with a C script animation, I used GetFaceplateTagname() function to get the tagname so I can do this....
Read more >Block attributes do not display as expected in AutoCAD
Attributes of some Block objects are not displayed as expected in AutoCAD, while they are displayed correctly inside Block Editor.
Read more >Post type not supporting third party blocks - WordPress.org
I have created a custom post type “icon” and a taxonomy “Icon Categories” for it. ... is not showing those custom blocks, and...
Read more >Display-like Simulink block with dynamically changing icon
I would like to create an own block which does the same. Sufficient would be to switch from a red to a green...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Will extension blocks be supported in the horizontal layout? If so, this seems like a necessary feature.
SCRATCH 3 WEB-BLOX