Skip to content

The list widget for magicgui/magicfactory does not inherit layout from top level #672

Open
@Czaki

Description

@Czaki

Describe the bug

If create magicgui widget with a vertical layout, the list widget still have horizontal layout.

It led to horizontal stretching of widgets.

To Reproduce

Use function

def combine_channels(channels: list['napari.layers.Image'], mode: CombineMode) -> 'napari.types.LayerDataTuple':
    pass

Expected behavior

New elements should be added in the same layout as main widget.

Screenshots

Screenshot 2024-09-17 at 11 43 02

Environment (please complete the following information):

  • magicgui version 0.6.1

I have opened this issue to discuss how to solve this before open PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions