Skip to content

Commit

Permalink
chore: fix the split view
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman committed Sep 12, 2023
1 parent d9eabda commit cb14a81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/src/components/splitView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ export const SplitView: React.FC<SplitViewProps> = ({
let size: number;
if (orientation === 'vertical') {
size = vSize / window.devicePixelRatio;
if (measure && measure.height < vSize)
if (measure && measure.height < size)
size = measure.height - 10;
} else {
size = hSize / window.devicePixelRatio;
if (measure && measure.width < hSize)
if (measure && measure.width < size)
size = measure.width - 10;
}

Expand Down

0 comments on commit cb14a81

Please sign in to comment.