update turtle mask placing and remove s (#4962)

This commit is contained in:
Monica Kozbial
2021-07-12 09:09:32 -07:00
committed by GitHub
parent 0b66af2e84
commit afa051ac18
2 changed files with 4 additions and 4 deletions

View File

@@ -236,9 +236,9 @@ CustomFields.FieldTurtle.prototype.render_ = function() {
break;
case 'Mask':
this.mask_.style.display = '';
this.turtleGroup_.setAttribute('transform', 'translate(0,1.2)');
this.turtleGroup_.setAttribute('transform', 'translate(0,6)');
this.textElement_.setAttribute('transform',
'translate(' + this.TEXT_OFFSET_X + ',4)');
'translate(' + this.TEXT_OFFSET_X + ',12)');
break;
case 'Propeller':
this.propeller_.style.display = '';
@@ -631,7 +631,7 @@ CustomFields.FieldTurtle.prototype.createView_ = function() {
this.mask_ = Blockly.utils.dom.createSvgElement('image',
{
'width': '50',
'height': '14'
'height': '24'
}, scaleGroup);
this.mask_.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href',
'media/mask.svg');

View File

@@ -63,7 +63,7 @@
<tr>
<td>
<textarea id="importExport"
style="width: 200px; height: 480px;"></textarea>s
style="width: 200px; height: 480px;"></textarea>
</td>
<td>
<div id="blocklyDiv" style="width: 600px; height: 480px;"></div>