[DE mobile] Fix image editing

This commit is contained in:
Julia Radzhabova 2021-03-27 23:53:36 +03:00
parent c0efac841b
commit c788ba2dd1

View file

@ -196,11 +196,12 @@ define([
if (me.api) {
var imgsize = me.api.get_OriginalSizeImage(),
properties = new Asc.asc_CImgProperty();
properties.put_Width(imgsize.get_ImageWidth());
properties.put_Height(imgsize.get_ImageHeight());
properties.put_ResetCrop(true);
me.api.ImgApply(properties);
if (imgsize) {
properties.put_Width(imgsize.get_ImageWidth());
properties.put_Height(imgsize.get_ImageHeight());
properties.put_ResetCrop(true);
me.api.ImgApply(properties);
}
}
},