0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

Center content on load

This commit is contained in:
alonso.torres 2021-01-14 14:14:55 +01:00
parent a3d8af9a96
commit 767f1c7b3d

View file

@ -366,8 +366,8 @@
:else
(assoc local :vbox (assoc size
:x (- (:x srect) 40)
:y (- (:y srect) 40))))))
:x (+ (:x srect) (/ (- (:width srect) width) 2))
:y (+ (:y srect) (/ (- (:height srect) height) 2)))))))
(setup [state local]
(if (:vbox local)