Skip to content

Commit

Permalink
fixed drawer right margin increasing on iPhone X (root-two#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Grachev committed May 30, 2019
1 parent 0bbf531 commit ebca139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit ebca139

Please sign in to comment.