Skip to content

Commit

Permalink
fix div size
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir-Kokin committed Jul 11, 2024
1 parent 807fff4 commit 51a07e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const RTCWellLogViewer: React.FunctionComponent = () => {

// storybook page
const meta: Meta<typeof RTCWellLogViewer> = {
title: "WellLogViewer / Examples / classification layout",
title: "WellLogViewer/Demo/ClassificationLayout",
component: RTCWellLogViewer,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ const TestComponentArea: React.FC<React.PropsWithChildren> = ({ children }) => {
const tab = useSelector(getTabValue);

const renderer = (ref: React.MutableRefObject<null>): React.JSX.Element => {
return <div ref={ref}> {children} </div>;
return (
<div ref={ref} style={{ height: "100%", width: "100%" }}>
{children}
</div>
);
};

const testComponent = renderTestComponent(renderer, ref, tab);
Expand Down

0 comments on commit 51a07e7

Please sign in to comment.