Skip to content

Node creation event outside of container bounds forces its resize #1051

@RaphaelPageObeo

Description

@RaphaelPageObeo
  • I have checked that this bug has not yet been reported by someone else
  • I have checked that this bug appears on Chrome
  • I have specified the version :
  • latest
  • I have specified my environment :
  • my computer: Windows

Screenshots

before

Steps to reproduce

  • I have two root nodes, A { size: 200x300, position: 10;10 } (in blue) and B { size: 200x300, position: 500;500} (in orange)
  • I click on (100;100) (inside A, red dot) and send a creation event
  • The editing context actually creates the new node in B

Expected behavior

  • A { size: 200x300, position: 10;10 }
  • B { size: 200x300, position: 500;500 }
  • Child { size: 150x70, position: 510;510 }

A is not resized. B is not resized either, since it is big enough to contain the new node. The new node is created in B, since it is a son of B.

Fixed

Actual behavior

  • A { size: 200x300, position: 10;10 }
  • B { size: 600x700, position: 231;231 }
  • Child { size: 150x70, position: 231;231 }

A is not resized. The new node is created in B...but not at the right coordinates, which forces B to be resized

Actual

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions