Skip to content

[master-detail-layout] incorrect view-transition used when closing details #9666

Open
@jouni

Description

@jouni

The [stack] or [drawer] attributes are eagerly removed when closing details, making the view-transition incorrect when closing.

The view-transition image pair is taken after those attributes are removed, which results in the wrong animations and animation styles getting applied when transitioning back from an opened detail to a closed detail. This is apparent with the stack mode when using the view transitions in #9665

When using stackOverlay=true (notice how the master content is not clipped when transitioning back):

Screen.Recording.2025-07-09.at.12.54.00.mov

When using stackOverlay=true and forceOverlay=true, then the animation works as expected:

Screen.Recording.2025-07-09.at.12.54.23.mov

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions