0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-07 15:39:42 -05:00

🐛 Fix problem with rulers not placing correctly

This commit is contained in:
alonso.torres 2023-04-13 14:15:49 +02:00 committed by Alejandro Alonso
parent d127177029
commit 9a750bad93
3 changed files with 9 additions and 4 deletions

View file

@ -1,5 +1,11 @@
# CHANGELOG
## 1.18.3
### :bug: Bugs fixed
- Fix problem with rulers not placing correctly [Taiga #5093](https://tree.taiga.io/project/penpot/issue/5093)
## 1.18.2
### :bug: Bugs fixed

View file

@ -59,10 +59,9 @@
(fn []
(when-not vport
(let [node (mf/ref-val viewport-ref)
prnt (dom/get-parent node)
size (dom/get-client-size prnt)]
prnt (dom/get-parent node)]
;; We schedule the event so it fires after `initialize-page` event
(timers/schedule #(st/emit! (dw/initialize-viewport size))))))))
(timers/schedule #(st/emit! (dw/initialize-viewport (dom/get-client-size prnt)))))))))
(defn setup-cursor [cursor alt? mod? space? panning drawing-tool drawing-path? path-editing? z? workspace-read-only?]
(mf/use-effect

View file

@ -1 +1 @@
1.18.2
1.18.3