mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 06:31:39 +02:00
🐛 Fixes measurement on root frame
This commit is contained in:
parent
162b0cfa6c
commit
6161911ff1
1 changed files with 8 additions and 7 deletions
|
@ -9,14 +9,15 @@
|
||||||
|
|
||||||
(ns app.main.ui.measurements
|
(ns app.main.ui.measurements
|
||||||
(:require
|
(:require
|
||||||
[rumext.alpha :as mf]
|
[app.common.data :as d]
|
||||||
|
[app.common.geom.point :as gpt]
|
||||||
|
[app.common.geom.shapes :as gsh]
|
||||||
|
[app.common.math :as mth]
|
||||||
|
[app.common.uuid :as uuid]
|
||||||
|
[app.main.store :as st]
|
||||||
[cuerdas.core :as str]
|
[cuerdas.core :as str]
|
||||||
[okulary.core :as l]
|
[okulary.core :as l]
|
||||||
[app.common.data :as d]
|
[rumext.alpha :as mf]))
|
||||||
[app.common.math :as mth]
|
|
||||||
[app.common.geom.shapes :as gsh]
|
|
||||||
[app.common.geom.point :as gpt]
|
|
||||||
[app.main.store :as st]))
|
|
||||||
|
|
||||||
;; ------------------------------------------------
|
;; ------------------------------------------------
|
||||||
;; CONSTANTS
|
;; CONSTANTS
|
||||||
|
@ -247,7 +248,7 @@
|
||||||
[:& size-display {:selrect selected-selrect :zoom zoom}]
|
[:& size-display {:selrect selected-selrect :zoom zoom}]
|
||||||
|
|
||||||
(if (or (not hover-shape) (not hover-selected-shape?))
|
(if (or (not hover-shape) (not hover-selected-shape?))
|
||||||
(when frame
|
(when (and frame (not= uuid/zero (:id frame)))
|
||||||
[:g.hover-shapes
|
[:g.hover-shapes
|
||||||
[:& distance-display {:from (:selrect frame)
|
[:& distance-display {:from (:selrect frame)
|
||||||
:to selected-selrect
|
:to selected-selrect
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue