Skip to content

Splitter disappearing when using maxSize #871

@dtlhlbs

Description

@dtlhlbs

I am using Allotment with Mantine AppShell:

<AppShell navbar={{ width: 80, breakpoint: 'sm' }}>
    <AppShell.Navbar>
        <NavBar />
    </AppShell.Navbar>
    <AppShell.Main style={{ height: '100vh', width: '100vw' }}>
        <Allotment>
            <Allotment.Pane minSize={200} preferredSize={300} maxSize={400}>
                <div>Pane 1</div>
            </Allotment.Pane>
            <Allotment.Pane snap>
                <Outlet />
            </Allotment.Pane>
        </Allotment>
    </AppShell.Main>
</AppShell>

When I set the maxSize the splitter disappears. It's there but I have to hunt for it. The right pane content also disappears. When I find the splitter using hover I can select it, but it won't drag left, until I select it for the second time. The first time I select it and drag left (which fails), the content reappears.

Recording.2025-12-23.103811.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions