eclipsesource / papyrus-gefx

A new Editor kind for Papyrus, based on GEFx and GMF Runtime
0 stars 2 forks source link

[Renderer] Anchors are not always properly refreshed #8

Closed CamilleLetavernier closed 4 years ago

CamilleLetavernier commented 6 years ago

When opening the diagram, the anchor are incorrectly positioned. They get to the right position after moving the element around (And stick to it after that).

There is probably a missing refresh on startup, during the initial display.

The issue may be specific to Packages (Because the Shape also suffers from refresh issues on startup, which might cause a layout delta), or it may be more general for any contained anchorage node.

When opening the model initially: (Left: expected, right: buggy behavior) packageanchorshift

After moving the package, everything comes back to normal: packagesshift-afterrefresh

CamilleLetavernier commented 6 years ago

The bug also affects nested elements in a CompositeStructure Diagram, so it isn't related to the Package Shape

CamilleLetavernier commented 6 years ago

It may also happen when a connected node is automatically resized (e.g when one of its children is removed), so we probably lack a listener on the Node's layout bounds.

CamilleLetavernier commented 4 years ago

Fixed with 4df196d6