Hidden fields shouldn't have in-row spacing #8790
Labels
issue: bug
Describes why the code or behaviour is wrong
issue: triage
Issues awaiting triage by a Blockly team member
Check for duplicates
Description
Example:

The above block has a hidden field '+', and that field in the below block is visible.
The above block has an extra in-row spacing after the hidden field. According to
RenderInfo.getInRowSpacing_
andRenderInfo.addElemSpacing_
, the renderer will always create a spacer whether the field is visible or not. The expected behavior should be that there's only one spacing between two visible fields.A possible solution is to add/remove fields instead of setting the visibility of fields. Since hidden fields also have some other rendering bugs (like #3223), maybe the visibility of fields should be deprecated?
Reproduction steps
Stack trace
Screenshots
No response
Browsers
No response
The text was updated successfully, but these errors were encountered: