mirror of
https://github.com/penpot/penpot.git
synced 2025-05-25 23:06:50 +02:00
🐛 Fix thumbnail cropping issue
This commit is contained in:
parent
119fbd114d
commit
9bea604a46
2 changed files with 3 additions and 1 deletions
|
@ -44,7 +44,8 @@
|
|||
|
||||
(defn- calculate-dimensions
|
||||
[{:keys [objects] :as data} vport]
|
||||
(let [shapes (cp/select-toplevel-shapes objects {:include-frames? true})
|
||||
(let [shapes (cp/select-toplevel-shapes objects {:include-frames? true
|
||||
:include-frame-children? false})
|
||||
to-finite (fn [val fallback] (if (not (mth/finite? val)) fallback val))
|
||||
rect (cond->> (gsh/selection-rect shapes)
|
||||
(some? vport)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue