mirror of
https://github.com/google/blockly.git
synced 2026-01-11 02:47:09 +01:00
update turtle mask placing and remove s (#4962)
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user