mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -05:00
🐛 Fix problem with rulers not placing correctly
This commit is contained in:
parent
d127177029
commit
9a750bad93
3 changed files with 9 additions and 4 deletions
|
@ -1,5 +1,11 @@
|
||||||
# CHANGELOG
|
# 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
|
## 1.18.2
|
||||||
|
|
||||||
### :bug: Bugs fixed
|
### :bug: Bugs fixed
|
||||||
|
|
|
@ -59,10 +59,9 @@
|
||||||
(fn []
|
(fn []
|
||||||
(when-not vport
|
(when-not vport
|
||||||
(let [node (mf/ref-val viewport-ref)
|
(let [node (mf/ref-val viewport-ref)
|
||||||
prnt (dom/get-parent node)
|
prnt (dom/get-parent node)]
|
||||||
size (dom/get-client-size prnt)]
|
|
||||||
;; We schedule the event so it fires after `initialize-page` event
|
;; 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?]
|
(defn setup-cursor [cursor alt? mod? space? panning drawing-tool drawing-path? path-editing? z? workspace-read-only?]
|
||||||
(mf/use-effect
|
(mf/use-effect
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1.18.2
|
1.18.3
|
||||||
|
|
Loading…
Reference in a new issue