Skip to content
Loading
  
  •          
  •          this.state.height }}>  
  •            "#fff" }}>

    Slider 2

      
  •            "#fff" }}>Lorem Ipsum is simply dummy text of the printing and typesetting industry.

      
  •            
  •          
  •        
  •   
  •    );  
  •  }  
  •  
    +2
  • +2
    Your code worked like a charm Vaibhav, Thank you so much it saves my time.
    +2
  • Vaibhav Chauhan
    +1
    Try to use Fix height in px instead of height:auto;
     
    If this doesn't work then 
    Please share your code in Codepen so I can check it
    +1
  • +1
    If i give height in px, the more content texts are hiding.
    +1
  • Vaibhav Chauhan
    +1
    There is no direct way but some tricky way to resolve this issue.
     
    You don't need to give the height in SCSS file but you can dynamic height as a state variable .
     
    In componentDidUpdate function you can check the heightOffset value of each section and apply the maximum height to the height state variable. So that sections can be render according to updated height.
    +1