mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 04:49:03 -05:00
Merge pull request #2015 from penpot/alotor-fix-text-problem
🐛 Fix problem with empty text boxes events
This commit is contained in:
commit
7cdbadc5b7
2 changed files with 12 additions and 7 deletions
|
@ -16,6 +16,7 @@
|
|||
- Fix menu file not accessible in certain conditions [Taiga #3385](https://tree.taiga.io/project/penpot/issue/3385)
|
||||
- Remove deprecated menu options [Taiga #3333](https://tree.taiga.io/project/penpot/issue/3333)
|
||||
- Prototype connection should be under the rules [Taiga #3384](https://tree.taiga.io/project/penpot/issue/3384)
|
||||
- Fix problem with empty text boxes events [Taiga #3627](https://tree.taiga.io/project/penpot/issue/3627)
|
||||
|
||||
|
||||
## 1.13.5-beta
|
||||
|
|
|
@ -271,20 +271,24 @@
|
|||
(mf/deref text-modifier-ref)
|
||||
|
||||
bounding-box
|
||||
(gsht/position-data-bounding-box text-modifier)]
|
||||
(gsht/position-data-bounding-box text-modifier)
|
||||
|
||||
x (min (:x bounding-box) (:x shape))
|
||||
y (min (:y bounding-box) (:y shape))
|
||||
width (max (:width bounding-box) (:width shape))
|
||||
height (max (:height bounding-box) (:height shape))]
|
||||
|
||||
[:g.text-editor {:clip-path (dm/fmt "url(#%)" clip-id)
|
||||
:transform (dm/str (gsh/transform-matrix shape))}
|
||||
[:defs
|
||||
[:clipPath {:id clip-id}
|
||||
[:rect {:x (min (:x bounding-box) (:x shape))
|
||||
:y (min (:y bounding-box) (:y shape))
|
||||
:width (max (:width bounding-box) (:width shape))
|
||||
:height (max (:height bounding-box) (:height shape))
|
||||
[:rect {:x (or x (:x shape))
|
||||
:y (or y (:y shape))
|
||||
:width (or width (:width shape))
|
||||
:height (or height (:height shape))
|
||||
:fill "red"}]]]
|
||||
|
||||
[:foreignObject {:x (:x shape) :y (:y shape) :width "100%" :height "100%"
|
||||
:externalResourcesRequired true}
|
||||
[:foreignObject {:x (:x shape) :y (:y shape) :width "100%" :height "100%"}
|
||||
[:div {:style {:position "absolute"
|
||||
:left 0
|
||||
:top 0
|
||||
|
|
Loading…
Add table
Reference in a new issue