From 4977c22b08098080896f50ec1d026dd0305adbcf Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 12 May 2021 15:18:30 +0200 Subject: [PATCH] :bug: Fix problem with text editing auto-height --- CHANGES.md | 1 + frontend/src/app/main/ui/workspace/shapes/text/editor.cljs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index f122bbe74..4d35b7109 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -14,6 +14,7 @@ ### :bug: Bugs fixed - Fix issues on group rendering. +- Fix problem with text editing auto-height [Taiga #1683](https://tree.taiga.io/project/penpot/issue/1683) ## 1.5.3-alpha diff --git a/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs b/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs index 036e07a92..1cdca4aaf 100644 --- a/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/text/editor.cljs @@ -139,7 +139,9 @@ [:div.text-editor {:ref self-ref - :style {:cursor cur/text} + :style {:cursor cur/text + :width (:width shape) + :height (:height shape)} :on-click (st/emitf (dwt/focus-editor)) :class (dom/classnames :align-top (= (:vertical-align content "top") "top")