mirror of
https://github.com/infeng/react-viewer.git
synced 2025-12-08 17:36:40 +00:00
fix: not set image height
This commit is contained in:
parent
fa25426d2e
commit
efac98532b
@ -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})`,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user