Skip to content

Commit

Permalink
fix(react-components): div wrapper not expanding to fit parent (#3436)
Browse files Browse the repository at this point in the history
  • Loading branch information
christjt authored Jun 28, 2023
1 parent 1371a42 commit 589effb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
},
"packageManager": "yarn@3.6.0",
"files": [
"./dist/*"
"dist"
],
"dependencies": {
"lodash": "^4.17.21",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ export default function RevealContainer({
return disposeViewer;
}, []);

return <div ref={revealDomElementRef}>{mountChildren()}</div>;
return (
<div style={{ width: '100%', height: '100%' }} ref={revealDomElementRef}>
{mountChildren()}
</div>
);

function mountChildren(): ReactElement {
if (viewer === undefined) return <></>;
Expand Down

0 comments on commit 589effb

Please sign in to comment.