From 52ffa740e2404027a27f8a5e50dd55d249171c85 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Wed, 10 Aug 2022 06:33:03 -0400 Subject: [PATCH] Fixed wall length showing up on top of the wall on Safari --- js/component/floor_plan_entity/wall.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/component/floor_plan_entity/wall.js b/js/component/floor_plan_entity/wall.js index 96c12a4..0e8d5d0 100644 --- a/js/component/floor_plan_entity/wall.js +++ b/js/component/floor_plan_entity/wall.js @@ -200,8 +200,7 @@ beestat.component.floor_plan_entity.wall.prototype.decorate_text_ = function(par this.text_.style.fill = '#ffffff'; this.text_.style.textAnchor = 'middle'; this.text_.style.letterSpacing = '-0.5px'; - this.text_.style.dominantBaseline = 'hanging'; - this.text_.setAttribute('dy', '5'); + this.text_.setAttribute('dy', '1.1em'); this.text_path_ = document.createElementNS('http://www.w3.org/2000/svg', 'textPath'); this.text_path_.setAttribute('href', '#' + this.path_id_);