Commit c8799f89 authored by christianrhansen's avatar christianrhansen

adjust temp cell style to selected cell style when selecting a cell

parent b36bbb8f
Pipeline #51195 passed with stage
in 5 minutes and 55 seconds
......@@ -835,6 +835,7 @@
let tempCell = this.tempCell
// de-/activate cell
if (annotation && tempCell.hidden) {
Object.keys(this.annotationUIStates).filter((k) => {
if (k !== annotation._uuid && this.annotationUIStates[k].editing) this.annotationUIStates[k].editing = false
......@@ -849,7 +850,18 @@
this.$root.$emit('mosys_saveScrollPosition')
}
// set temp cell position
let
parsed = annotation.target.selector._value,
x = parsed.xywh[0],
y = parsed.xywh[1],
w = parsed.xywh[2],
h = parsed.xywh[3]
Object.assign(tempCell, { x: x, y: y, width: w, height: h })
// handler positioning
if (!this.cachedNewCell) {
this.setHandlerPosition(annotation)
this.selectedCell.annotation = annotation
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment