It is just basic example how the vertical scroll is appearing despite of overflow-y:visible property.I have a table where i want to have horizontal scrolling in case of large data set.Horizontal scrolling should by dynamic so i set overflow-x:auto but this spoils behaviour of opening a dropdown menu which creates vertical scroll.
What is wrong?
Thank you in advance.
class Example extends React.Component {
constructor(props){
super(props)
}
render(){
return (
<ReactBootstrap.DropdownButton
title='test'
id='1'
>
<ReactBootstrap.MenuItem eventKey="1">Action</ReactBootstrap.MenuItem>
<ReactBootstrap.MenuItem eventKey="2">Another action</ReactBootstrap.MenuItem>
<ReactBootstrap.MenuItem eventKey="3" active>
Active Item
</ReactBootstrap.MenuItem>
<ReactBootstrap.MenuItem divider />
<ReactBootstrap.MenuItem eventKey="4">Separated link</ReactBootstrap.MenuItem>
</ReactBootstrap.DropdownButton>
)
}
}
ReactDOM.render(<Example />, document.getElementById('container'))
#container {
height:50px;
overflow-y:visible;
overflow-x:auto;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-dom.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-bootstrap/0.32.1/react-bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<div id="container">
</div>