mirror of
https://github.com/penpot/penpot.git
synced 2025-06-10 20:41:39 +02:00
🐛 Fix problem when opening the context menu in dashboard at the bottom
This commit is contained in:
parent
1ec423c11d
commit
1584f3771b
3 changed files with 3 additions and 2 deletions
|
@ -46,7 +46,7 @@
|
|||
(mf/use-callback
|
||||
(mf/deps top (:offset @local))
|
||||
(fn [node]
|
||||
(when (and node (not fixed?))
|
||||
(when (some? node)
|
||||
(let [{node-height :height} (dom/get-bounding-rect node)
|
||||
{window-height :height} (dom/get-window-size)
|
||||
target-offset (if (> (+ top node-height) window-height)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue