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:
parent
a3d8af9a96
commit
767f1c7b3d
1 changed files with 2 additions and 2 deletions
|
@ -366,8 +366,8 @@
|
||||||
|
|
||||||
:else
|
:else
|
||||||
(assoc local :vbox (assoc size
|
(assoc local :vbox (assoc size
|
||||||
:x (- (:x srect) 40)
|
:x (+ (:x srect) (/ (- (:width srect) width) 2))
|
||||||
:y (- (:y srect) 40))))))
|
:y (+ (:y srect) (/ (- (:height srect) height) 2)))))))
|
||||||
|
|
||||||
(setup [state local]
|
(setup [state local]
|
||||||
(if (:vbox local)
|
(if (:vbox local)
|
||||||
|
|
Loading…
Reference in a new issue