From afa051ac18da05bcae5a2123638d46ef20f993da Mon Sep 17 00:00:00 2001 From: Monica Kozbial <6621618+moniika@users.noreply.github.com> Date: Mon, 12 Jul 2021 09:09:32 -0700 Subject: [PATCH] update turtle mask placing and remove s (#4962) --- demos/custom-fields/turtle/field_turtle.js | 6 +++--- demos/custom-fields/turtle/index.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demos/custom-fields/turtle/field_turtle.js b/demos/custom-fields/turtle/field_turtle.js index bb555001a..8c268b4d5 100644 --- a/demos/custom-fields/turtle/field_turtle.js +++ b/demos/custom-fields/turtle/field_turtle.js @@ -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'); diff --git a/demos/custom-fields/turtle/index.html b/demos/custom-fields/turtle/index.html index 4cbb5671e..975d20c8e 100644 --- a/demos/custom-fields/turtle/index.html +++ b/demos/custom-fields/turtle/index.html @@ -63,7 +63,7 @@