I believe Aaron was referring to a property on
class FieldImage declared as
private static readonly Y_PADDING. Needless to say that modifying
private readonly properties is not an officially supported (let alone endorsed) way to modify Blockly, which is why it's not documented, and code modifying it will almost certainly break unexpectedly and without warning in some future version of Blockly. The better way to do this is to subclass
FieldImageInput and override how it computes
.size_—but for the purposes of experimenting with what happens when you change the reported size of an image field, doing a quick
Blockly.FieldImage.Y_PADDING = /* some negative value */ will let you see the effect of having the field claim to be smaller than the actual image.