Merge branch 'bendman-bugfix/680-preview-dimensions'

This commit is contained in:
Cassie Tarakajian 2018-10-17 15:40:58 -04:00
commit f4ff0b1c34
4 changed files with 52 additions and 34 deletions

View file

@ -369,6 +369,7 @@ class IDEView extends React.Component {
<header className="preview-frame__header"> <header className="preview-frame__header">
<h2 className="preview-frame__title">Preview</h2> <h2 className="preview-frame__title">Preview</h2>
</header> </header>
<div className="preview-frame__content">
<div className="preview-frame-overlay" ref={(element) => { this.overlay = element; }}> <div className="preview-frame-overlay" ref={(element) => { this.overlay = element; }}>
</div> </div>
<div> <div>
@ -405,6 +406,7 @@ class IDEView extends React.Component {
expandConsole={this.props.expandConsole} expandConsole={this.props.expandConsole}
/> />
</div> </div>
</div>
</SplitPane> </SplitPane>
</SplitPane> </SplitPane>
</div> </div>

View file

@ -31,6 +31,9 @@ const defaultCSS =
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
canvas {
display: block;
}
`; `;
const initialState = () => { const initialState = () => {

View file

@ -5,6 +5,11 @@
border-width: 0; border-width: 0;
} }
.preview-frame-holder {
display: flex;
flex-direction: column;
height: 100%;
}
.preview-frame-overlay { .preview-frame-overlay {
height: 100%; height: 100%;
@ -37,3 +42,8 @@
font-size: #{12 / $base-font-size}rem; font-size: #{12 / $base-font-size}rem;
font-weight: normal; font-weight: normal;
} }
.preview-frame__content {
position: relative;
flex: 1 1 0;
}

View file

@ -28,6 +28,9 @@ const defaultCSS =
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
canvas {
display: block;
}
`; `;
const clientId = process.env.GITHUB_ID; const clientId = process.env.GITHUB_ID;