nomcopter / react-mosaic

A React tiling window manager

Home Page:https://nomcopter.github.io/react-mosaic/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

minimumPaneSizePercentage clamp with the header minimum.

Bouh opened this issue · comments

Feature ask

Currently we can't reduce a panel to zero because the props value by default is minimum 20%.

minimumPaneSizePercentage: 20,

I ask for have an option for customize the value, on both axis X and Y, the idea is to stack the panels on X, and keep 20% for Y axis, the vertical panels.

image

Current behavior

image

commented

You can change the default pane size like this.

<Mosaic
  resize={{ minimumPaneSizePercentage: 5 }}
...
/>

export interface EnabledResizeOptions {
minimumPaneSizePercentage?: number; // Default: 20
}

That's for sure, but the header size is not taken into account because the height value isn't dynamic.
When we have a zoom in the browser the panel can't be resized.

Here two headers in purple, zoom 150% in Chrome.
image

Even with a lower zoom, 110%, the split component can't be selected.
image