Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import { Container, Row, Col } from 'reactstrap';
  3.  
  4. const styles = {
  5. container: {
  6.  
  7. },
  8. right: {
  9. height: window.innerHeight, // I want to change this
  10. padding: 0,
  11. margin: 0,
  12. overflow: 'hidden',
  13. backgroundColor: 'yellow'
  14. },
  15. left: {
  16. overflowY: '100%',
  17. padding: 0,
  18. height: window.innerHeight,
  19. paddingBottom: '50px',
  20. backgroundColor: 'white'
  21. },
  22. row: {
  23. marginBottom: 0
  24. }
  25. }
  26.  
  27. class MainArea extends Component {
  28. constructor(){
  29. super();
  30. }
  31. render() {
  32. return (
  33. <Container fluid>
  34. <Row>
  35. <Col xs="12" sm="4" md="4" lg="3" style={ styles.left }>
  36. Some text
  37. </Col>
  38. <Col xs="12" sm="8" md="8" lg="9" style={ styles.right }>
  39. Some text
  40. </Col>
  41. </Row>
  42. </Container>
  43. );
  44. }
  45. }
  46.  
  47. export default MainArea;
  48.  
  49. height: window.innerHeight,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement