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

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))