Permalink
Browse files

Enable scroll in CodePane. (#363)

-add overflow and height properties to styles
-apply to example
-fixes #327
  • Loading branch information...
Michelle Bergquist authored and kenwheeler committed Oct 3, 2017
1 parent 5664af4 commit 57141b6992ee6d24c320904ef57e863f9446ef62
Showing with 11 additions and 2 deletions.
  1. +2 −0 example/src/index.js
  2. +9 −2 src/utils/base.js
View
@@ -58,6 +58,8 @@ export default class Presentation extends React.Component {
lang="jsx"
source={require("raw-loader!../assets/deck.example")}
margin="20px auto"
overflow = "overflow"
height = "80vh"
/>
</Slide>
<Slide>
View
@@ -71,7 +71,9 @@ export const getStyles = function getStyles() {
bgDarken,
bgSize,
bgPosition,
bgRepeat
bgRepeat,
overflow,
height
} = this.props;
const styles = {};
@@ -145,6 +147,11 @@ export const getStyles = function getStyles() {
styles.backgroundRepeat = bgRepeat;
}
}
if (overflow) {
styles.overflow = overflow;
}
if (height) {
styles.height = height;
}
return styles;
};

0 comments on commit 57141b6

Please sign in to comment.