Skip to content

Commit

Permalink
Pull WorkspaceElastic styles up
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Dec 20, 2023
1 parent 0d82550 commit 1aee104
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/WorkspaceElastic.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ import ResizeObserver from 'react-resize-observer';
import WorkspaceElasticWindow from '../containers/WorkspaceElasticWindow';
import ns from '../config/css-ns';

const Root = styled('div', { name: 'WorkspaceElastic', slot: 'root' })({
height: '100%',
position: 'relative',
width: '100%',
});

const StyledRnd = styled(Rnd)({
boxSizing: 'border-box',
margin: 0,
Expand Down Expand Up @@ -39,7 +45,7 @@ class WorkspaceElastic extends Component {
const offsetY = workspace.height / 2;

return (
<div style={{ height: '100%', position: 'relative', width: '100%' }}>
<Root>
<ResizeObserver
onReflow={() => {}}
onResize={(rect) => { setWorkspaceViewportDimensions(rect); }}
Expand Down Expand Up @@ -79,7 +85,7 @@ class WorkspaceElastic extends Component {
))
}
</StyledRnd>
</div>
</Root>
);
}
}
Expand Down

0 comments on commit 1aee104

Please sign in to comment.