Skip to content

MDL master part gets zero width when detail hidden #10318

@rolfsmeds

Description

@rolfsmeds

Description

When MDL is used with a fixed-size master side and a flexible-width detail side, the master shadow part only gets a max-width but no width when the detail side is hidden. The part thus collapses to 0 width, and so does e.g. a Grid inside it with width:100%.

Expected outcome

Actually not sure how it should behave.
Either the master side should always stick to the size set to it, or it should expand to fill the entire MDL when the detail is hidden.

Minimal reproducible example

grid.setSizeFull();
mdl.setSizeFull();
mdl.setMaster(grid);
mdl.setMasterSize("400px");
mdl.setDetailMinSize("500px");

Steps to reproduce

Configure an MDL with a Grid in the master side and whatever on the detail side as shown above.

Environment

Vaadin version(s): 24.8.8.

Browsers

No response

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