Merge pull request #7845 from penpot/elenatorro-fix-case

🐛 Fix editor vertical align default case
This commit is contained in:
Alejandro Alonso 2025-11-27 14:00:12 +01:00 committed by GitHub
commit 3de4473251
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -317,7 +317,7 @@
max-height (max height selrect-height)
valign (-> shape :content :vertical-align)
y (:y selrect)
y (if (> height selrect-height)
y (if (and valign (> height selrect-height))
(case valign
"bottom" (- y (- height selrect-height))
"center" (- y (/ (- height selrect-height) 2))