From 13b2148e7a4caa257fb6ea4edd7cbd56b4c5f43b Mon Sep 17 00:00:00 2001 From: Artkrygin <80037398+Artkrygin@users.noreply.github.com> Date: Sat, 6 Nov 2021 18:01:23 +0300 Subject: [PATCH] [FIX] Scrollbars and TwoTableBig story --- src/data-controls/TreeRenderer.tsx | 2 +- stories/TwoTablesBig.stories.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/data-controls/TreeRenderer.tsx b/src/data-controls/TreeRenderer.tsx index 3a39169..fa4499d 100644 --- a/src/data-controls/TreeRenderer.tsx +++ b/src/data-controls/TreeRenderer.tsx @@ -20,7 +20,7 @@ import './styles.css'; const divStyle: React.CSSProperties = { height: '100%', padding: '5px', - overflow: 'scroll', + overflow: 'auto', }; export const TreeRenderer: React.FC = (props) => { diff --git a/stories/TwoTablesBig.stories.tsx b/stories/TwoTablesBig.stories.tsx index b9f69dd..e9d2488 100644 --- a/stories/TwoTablesBig.stories.tsx +++ b/stories/TwoTablesBig.stories.tsx @@ -150,7 +150,7 @@ const viewKinds = [ elements: [ { '@id': 'mktp:_934jHd67', - '@type': 'aldkg:PanelLayout', + '@type': 'aldkg:VerticalLayout', options: { style: { height: '100%', @@ -187,6 +187,7 @@ const viewKinds = [ '@id': 'mktp:_97hFH67', '@type': 'aldkg:SplitPaneLayout', options: { + grow: '1', style: { width: '100%', height: '100%',