diff --git a/index.js b/index.js index ad60eccd..02adcca4 100644 --- a/index.js +++ b/index.js @@ -208,7 +208,7 @@ export default class Drawer extends Component { switch (this.props.type) { case 'overlay': - drawerProps[this.props.side] = -this.getDeviceLength() + this._offsetOpen + this._length + drawerProps[this.props.side] = Math.round(-this.getDeviceLength() + this._offsetOpen + this._length) mainProps[this.props.side] = this._offsetClosed break case 'static':