mirror of
https://github.com/penpot/penpot.git
synced 2025-05-21 01:26:10 +02:00
🐛 Fix problem with empty text boxes events
This commit is contained in:
parent
0654741e28
commit
fb1dbd6f31
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)
|
- 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)
|
- 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)
|
- 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
|
## 1.13.5-beta
|
||||||
|
|
|
@ -271,20 +271,24 @@
|
||||||
(mf/deref text-modifier-ref)
|
(mf/deref text-modifier-ref)
|
||||||
|
|
||||||
bounding-box
|
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)
|
[:g.text-editor {:clip-path (dm/fmt "url(#%)" clip-id)
|
||||||
:transform (dm/str (gsh/transform-matrix shape))}
|
:transform (dm/str (gsh/transform-matrix shape))}
|
||||||
[:defs
|
[:defs
|
||||||
[:clipPath {:id clip-id}
|
[:clipPath {:id clip-id}
|
||||||
[:rect {:x (min (:x bounding-box) (:x shape))
|
[:rect {:x (or x (:x shape))
|
||||||
:y (min (:y bounding-box) (:y shape))
|
:y (or y (:y shape))
|
||||||
:width (max (:width bounding-box) (:width shape))
|
:width (or width (:width shape))
|
||||||
:height (max (:height bounding-box) (:height shape))
|
:height (or height (:height shape))
|
||||||
:fill "red"}]]]
|
:fill "red"}]]]
|
||||||
|
|
||||||
[:foreignObject {:x (:x shape) :y (:y shape) :width "100%" :height "100%"
|
[:foreignObject {:x (:x shape) :y (:y shape) :width "100%" :height "100%"}
|
||||||
:externalResourcesRequired true}
|
|
||||||
[:div {:style {:position "absolute"
|
[:div {:style {:position "absolute"
|
||||||
:left 0
|
:left 0
|
||||||
:top 0
|
:top 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue