Open marstamm opened 1 month ago
I'd expect a canvas.resized
event that the context pad can react to.
Yea. We could use such event to hook up other changes such as the responsive palette, too.
@philippfromme after further investigating this we have most measures in place:
canvas.viewbox.changed
is there to hook intoCanvas
does Update: Canvas#resized
is already there, but not properly hooked up.
I don't know if I understand correctly but Canvas
has a resized method which fires a canvas.resized
event to the eventBus
.
The issue can be fixed by listening on it in the contextPad
to fire the updatePosition
method.
However, the contextPad
is only positioned after the sizing is done. But it fixes necessary hovering after resizing the propertiesPanel
.
https://github.com/camunda/camunda-modeler/assets/171981126/ef987380-a190-476a-80c7-8a778a698d5e
@options-a11y My appologies! In fact canvas already has the resize
method, and event as you mentioned :tada:.
We just need to ensure we properly hook this up and/or fire canvas.viewbox.changed
on canvas.resized
.
CC @philippfromme
Describe the bug
The Context pad is automatically repositioned when I move the canvas. When I expand the properties panel instead, to context pad can be (partially) hidden and is repositioned/removed when I hover over the canvas
Steps to reproduce
--enable-new-context-pad
Expected behavior
Context pad position position is updated on resize
Environment
Additional context
No response