This commit is contained in:
Andrey Savihin 2019-11-26 11:56:57 +03:00
commit 3fbcb2e097
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "asc-web-components",
"version": "1.0.195",
"version": "1.0.196",
"description": "Ascensio System SIA component library",
"license": "AGPL-3.0",
"main": "dist/asc-web-components.js",

View File

@ -229,7 +229,11 @@ class AvatarEditorBody extends React.Component {
handleScale = e => {
const scale = parseFloat(e.target.value);
this.setState({ scale })
this.setState({ scale });
this.props.onSizeChange({
width: this.setEditorRef.current.getImage().width,
height: this.setEditorRef.current.getImage().height
});
};
onImageReady() {
this.setState({