From 55dfd7e328ec15bfcfc4508408e60ca175dcac95 Mon Sep 17 00:00:00 2001 From: Basile Pesin Date: Mon, 22 Oct 2018 20:59:08 +0200 Subject: [PATCH] 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 --- client/modules/IDE/components/PreviewFrame.jsx | 7 ++++++- client/styles/components/_preview-frame.scss | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/client/modules/IDE/components/PreviewFrame.jsx b/client/modules/IDE/components/PreviewFrame.jsx index c6e0fc0b..17d52362 100644 --- a/client/modules/IDE/components/PreviewFrame.jsx +++ b/client/modules/IDE/components/PreviewFrame.jsx @@ -7,6 +7,7 @@ import srcDoc from 'srcdoc-polyfill'; import loopProtect from 'loop-protect'; import { JSHINT } from 'jshint'; import decomment from 'decomment'; +import classNames from 'classnames'; import { getBlobUrl } from '../actions/files'; import { resolvePathToFile } from '../../../../server/utils/filePath'; import { @@ -330,10 +331,14 @@ class PreviewFrame extends React.Component { } render() { + const iframeClass = classNames({ + 'preview-frame': true, + 'preview-frame--full-view': this.props.fullView + }); return (