react-awesome-modal
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -60,7 +60,7 @@ 'use strict'; | ||
value: function setSize(effect) { | ||
if (this.props.width) { | ||
if (this.props && this.props.width) { | ||
_style2.default[effect].panel.width = this.props.width + 'px'; | ||
_style2.default[effect].panel.marginLeft = '-' + this.props.width / 2 + 'px'; | ||
} | ||
if (this.props.height) { | ||
if (this.props && this.props.height) { | ||
_style2.default[effect].panel.height = this.props.height + 'px'; | ||
@@ -67,0 +67,0 @@ _style2.default[effect].panel.marginTop = '-' + this.props.height / 2 + 'px'; |
{ | ||
"name": "react-awesome-modal", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "This is a React Modal Component.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index", |
12620