Skip to content

Misalignment of DecoratorNode due to Insertion of ElementNode or Additional DecoratorNode #54

@JaminZhou

Description

@JaminZhou

I've noticed an issue regarding the layout misplacement of DecoratorNode when an ElementNode or another DecoratorNode is inserted before it. Upon debugging, I found out that the misalignment is caused by the system not marking the problematic DecoratorNode as 'dirty', which results in the layout not being recalibrated or updated. As such, I propose a fix that would include the marking of the DecoratorNode as 'dirty' to trigger a layout update whenever a new node is inserted. This should correct the alignment issue and ensure the layout is correctly adjusted for the new node.

Simulator.Screen.Recording.-.iPhone.15.-.2023-12-18.at.14.53.28.mp4
Simulator.Screen.Recording.-.iPhone.15.-.2023-12-18.at.14.55.56.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions