fix: not set image height

This commit is contained in:
infeng 2016-12-20 14:06:44 +08:00
parent fa25426d2e
commit efac98532b

View File

@ -120,6 +120,7 @@ export default class ViewerCavans extends React.Component<ViewerCavansProps, Vie
render() {
let imgStyle: React.CSSProperties = {
width: `${this.props.width}px`,
height: `${this.props.height}px`,
marginTop: `${this.props.top}px`,
marginLeft: this.props.left ? `${this.props.left}px` : 'auto',
transform: `rotate(${this.props.rotate}deg) scaleX(${this.props.scaleX}) scaleY(${this.props.scaleY})`,