mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05: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
|
@ -31,6 +31,7 @@
|
||||||
- Fix problem with zoom an selection rect [#845](https://github.com/penpot/penpot/issues/845)
|
- Fix problem with zoom an selection rect [#845](https://github.com/penpot/penpot/issues/845)
|
||||||
- Fix problem displaying team statistics [#859](https://github.com/penpot/penpot/issues/859)
|
- Fix problem displaying team statistics [#859](https://github.com/penpot/penpot/issues/859)
|
||||||
- Fix problems with text editor selection [Taiga #1546](https://tree.taiga.io/project/penpot/issue/1546)
|
- Fix problems with text editor selection [Taiga #1546](https://tree.taiga.io/project/penpot/issue/1546)
|
||||||
|
- Fix problem when opening the context menu in dashboard at the bottom [#856](https://github.com/penpot/penpot/issues/856)
|
||||||
|
|
||||||
### :arrow_up: Deps updates
|
### :arrow_up: Deps updates
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
(mf/deps top (:offset @local))
|
(mf/deps top (:offset @local))
|
||||||
(fn [node]
|
(fn [node]
|
||||||
(when (and node (not fixed?))
|
(when (some? node)
|
||||||
(let [{node-height :height} (dom/get-bounding-rect node)
|
(let [{node-height :height} (dom/get-bounding-rect node)
|
||||||
{window-height :height} (dom/get-window-size)
|
{window-height :height} (dom/get-window-size)
|
||||||
target-offset (if (> (+ top node-height) window-height)
|
target-offset (if (> (+ top node-height) window-height)
|
||||||
|
|
|
@ -200,7 +200,7 @@
|
||||||
(when selected?
|
(when selected?
|
||||||
[:& file-menu {:files selected-file-objs
|
[:& file-menu {:files selected-file-objs
|
||||||
:show? (:menu-open @local)
|
:show? (:menu-open @local)
|
||||||
:left (:x (:menu-pos @local))
|
:left (+ 24 (:x (:menu-pos @local)))
|
||||||
:top (:y (:menu-pos @local))
|
:top (:y (:menu-pos @local))
|
||||||
:navigate? navigate?
|
:navigate? navigate?
|
||||||
:on-edit on-edit
|
:on-edit on-edit
|
||||||
|
|
Loading…
Reference in a new issue