mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
fix scaling issue for slides container
This commit is contained in:
parent
ee0c36a73d
commit
cb5b381e0b
@ -63,7 +63,8 @@ let SlidesContainer = React.createClass({
|
||||
|
||||
handleContainerResize() {
|
||||
this.setState({
|
||||
containerWidth: this.refs.containerWrapper.getDOMNode().offsetWidth
|
||||
// +30 to get rid of the padding of the container which is 15px + 15px left and right
|
||||
containerWidth: this.refs.containerWrapper.getDOMNode().offsetWidth + 30
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
overflow-x: hidden;
|
||||
overflow-y: hidden;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.ascribe-sliding-container {
|
||||
|
Loading…
Reference in New Issue
Block a user