From 09f6b792a6847288929ef39fe2d313cdf7ea814a Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Wed, 13 Nov 2019 17:22:21 -0800 Subject: [PATCH] Move field border radius into a constant (#3434) * Move field border radius into a constant * Drop const. --- core/field.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/field.js b/core/field.js index 3055d06d0..6b68324b7 100644 --- a/core/field.js +++ b/core/field.js @@ -326,8 +326,8 @@ Blockly.Field.prototype.createBorderRect_ = function() { this.borderRect_ = /** @type {!SVGRectElement} **/ (Blockly.utils.dom.createSvgElement('rect', { - 'rx': 4, - 'ry': 4, + 'rx': this.constants_.FIELD_BORDER_RECT_RADIUS, + 'ry': this.constants_.FIELD_BORDER_RECT_RADIUS, 'x': 0, 'y': 0, 'height': this.size_.height,