From 8c99cccbc337fd31e35cf69b46a67630787a0048 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Sat, 13 Apr 2019 20:30:56 -0700 Subject: [PATCH] Degree symbol left of number in both LTR and RTL. Resolves issue #2380. --- core/field_angle.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/field_angle.js b/core/field_angle.js index bf9d6b81f..f776d0a95 100644 --- a/core/field_angle.js +++ b/core/field_angle.js @@ -127,11 +127,8 @@ Blockly.FieldAngle.prototype.render_ = function() { this.textElement_.textContent = this.getDisplayText_(); // Insert degree symbol. - if (this.sourceBlock_.RTL) { - this.textElement_.insertBefore(this.symbol_, this.textElement_.firstChild); - } else { - this.textElement_.appendChild(this.symbol_); - } + // Degree symbol should be left of number, even in RTL (issue #2380). + this.textElement_.appendChild(this.symbol_); this.updateWidth(); };