mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 19:28:12 +00:00
✨ Center content on load
This commit is contained in:
parent
a3d8af9a96
commit
767f1c7b3d
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user