Skip to content

Commit 55dfd7e

Browse files
Vertmocatarak
authored andcommitted
Fixed my scrollbar mistake (#736)
* Fixed my scrollbar mistake * Really fixed it by introducing a slightly different class for the fullview frame * Using classnames module
1 parent 924cd32 commit 55dfd7e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

client/modules/IDE/components/PreviewFrame.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import srcDoc from 'srcdoc-polyfill';
77
import loopProtect from 'loop-protect';
88
import { JSHINT } from 'jshint';
99
import decomment from 'decomment';
10+
import classNames from 'classnames';
1011
import { getBlobUrl } from '../actions/files';
1112
import { resolvePathToFile } from '../../../../server/utils/filePath';
1213
import {
@@ -330,10 +331,14 @@ class PreviewFrame extends React.Component {
330331
}
331332

332333
render() {
334+
const iframeClass = classNames({
335+
'preview-frame': true,
336+
'preview-frame--full-view': this.props.fullView
337+
});
333338
return (
334339
<iframe
335340
id="canvas_frame"
336-
className="preview-frame"
341+
className={iframeClass}
337342
aria-label="sketch output"
338343
role="main"
339344
frameBorder="0"

client/styles/components/_preview-frame.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
border-width: 0;
66
}
77

8+
.preview-frame--full-view {
9+
position: relative;
10+
}
11+
812
.preview-frame-holder {
913
display: flex;
1014
flex-direction: column;

0 commit comments

Comments
 (0)