From ebca139028067d79f071597b0468ccaf0c04a4d4 Mon Sep 17 00:00:00 2001 From: Dmitriy Grachev Date: Fri, 31 May 2019 01:39:37 +0300 Subject: [PATCH] fixed drawer right margin increasing on iPhone X (#370) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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':