mirror of
https://github.com/penpot/penpot.git
synced 2025-07-23 00:37:12 +02:00
🐛 Fix function signature
This commit is contained in:
parent
e7f05f2efc
commit
1378e88431
1 changed files with 65 additions and 62 deletions
|
@ -27,7 +27,10 @@
|
||||||
|
|
||||||
(defn child-layout-bound-points
|
(defn child-layout-bound-points
|
||||||
"Returns the bounds of the children as points"
|
"Returns the bounds of the children as points"
|
||||||
[parent child parent-bounds child-bounds correct-v bounds objects]
|
([parent child parent-bounds child-bounds bounds objects]
|
||||||
|
(child-layout-bound-points parent child parent-bounds child-bounds (gpt/point) bounds objects))
|
||||||
|
|
||||||
|
([parent child parent-bounds child-bounds correct-v bounds objects]
|
||||||
|
|
||||||
(let [row? (ctl/row? parent)
|
(let [row? (ctl/row? parent)
|
||||||
col? (ctl/col? parent)
|
col? (ctl/col? parent)
|
||||||
|
@ -111,7 +114,7 @@
|
||||||
(and col? (ctl/fill-height? child))
|
(and col? (ctl/fill-height? child))
|
||||||
(gpt/subtract (vv (+ height min-height)))
|
(gpt/subtract (vv (+ height min-height)))
|
||||||
)]
|
)]
|
||||||
[result correct-v]))
|
[result correct-v])))
|
||||||
|
|
||||||
(defn layout-content-points
|
(defn layout-content-points
|
||||||
[bounds parent children objects]
|
[bounds parent children objects]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue