Hide hidden fields (issue 37).

This commit is contained in:
Neil Fraser 2015-01-05 12:04:01 -08:00
parent 86f79502ce
commit a624b5d2da
4 changed files with 18 additions and 11 deletions

View file

@ -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,