mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-10 21:18:53 -04:00
Hide hidden fields (issue 37).
This commit is contained in:
parent
86f79502ce
commit
a624b5d2da
4 changed files with 18 additions and 11 deletions
core
|
@ -88,6 +88,9 @@ Blockly.Field.prototype.init = function(block) {
|
|||
this.sourceBlock_ = block;
|
||||
// Build the DOM.
|
||||
this.fieldGroup_ = Blockly.createSvgElement('g', {}, null);
|
||||
if (!this.visible_) {
|
||||
this.fieldGroup_.style.display = 'none';
|
||||
}
|
||||
this.borderRect_ = Blockly.createSvgElement('rect',
|
||||
{'rx': 4,
|
||||
'ry': 4,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue