1
0
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:
Tim Daubenschütz 2015-07-29 11:23:25 +02:00
parent ee0c36a73d
commit cb5b381e0b
2 changed files with 3 additions and 1 deletions

View File

@ -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
});
},

View File

@ -2,6 +2,7 @@
overflow-x: hidden;
overflow-y: hidden;
padding-left: 0;
padding-right: 0;
}
.ascribe-sliding-container {