Skip to content

Commit fb4146c

Browse files
committed
set both width/height = 1 to avoid warning message
1 parent 5cb0d53 commit fb4146c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helper/Image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var ResizableImage = React.createClass({
1515
// set width 1 is for preventing the warning
1616
// You must specify a width and height for the image %s
1717
width: this.props.style.width || 1,
18-
height: this.props.style.height || 0,
18+
height: this.props.style.height || 1,
1919
}
2020
},
2121
componentDidMount: function() {

0 commit comments

Comments
 (0)