dockview icon indicating copy to clipboard operation
dockview copied to clipboard

Themes with gap overflow

Open mackrol opened this issue 9 months ago • 2 comments

Describe the bug Setting a theme with a non zero gap i.e. themeAbyssSpaced overflows the main container and scrollbars are visible. Additionally themeReplit displays scrollbars in panel containers.

To Reproduce


import {
  DockviewReact,
  type DockviewReadyEvent,
  type IDockviewPanelProps,
  themeAbyssSpaced,
} from 'dockview';

const Default = (props: IDockviewPanelProps) => {
  return <div>{props.api.title}</div>;
};

const components = {
  default: Default,
};

export default function App() {
  const onReady = (event: DockviewReadyEvent) => {
    event.api.addPanel({
        id: 'panel_1',
        title: 'Panel 1',
        component: 'default',
    });

    event.api.addPanel({
        id: 'panel_2',
        title: 'Panel 2',
        component: 'default',
        position: {
            direction: 'right',
            referencePanel: 'panel_1',
        },
    });
  };

  return (
    <DockviewReact theme={themeAbyssSpaced} onReady={onReady} components={components} />
  );
};

Expected behavior No scrollbar should be visible for themes with a non zero gap.

Screenshots

themeAbyss (OK):

Image

themeAbyssSpaced:

Image

themeReplit:

Image

Desktop:

  • FireFox 138.0.4
  • Chrome 136.0.7103.114
  • Edge 136.0.3240.76

Additional context DockView 4.2.5

mackrol avatar May 21 '25 16:05 mackrol

Fixed in 4.6.2 - although if you can confirm on your end that would be great?

mathuo avatar Aug 02 '25 14:08 mathuo

Thanks, themeAbyssSpaced and themeLightSpaced are OK, but themeReplit still overflows by 2px in x and y directions.

mackrol avatar Aug 02 '25 15:08 mackrol