Browse Source

Up initResize

pull/5399/head
Artur Arseniev 2 years ago
parent
commit
928662e93d
  1. 4
      src/commands/view/SelectComponent.ts

4
src/commands/view/SelectComponent.ts

@ -391,8 +391,9 @@ export default {
if (model && resizable) {
canvas.addSpot({ type: spotTypeResize, component: model });
const el = isElement(elem) ? elem : model.getEl();
if (hasCustomResize) return;
if (hasCustomResize || !el) return;
let modelToStyle: any;
const { config } = em;
@ -409,7 +410,6 @@ export default {
});
};
const el = isElement(elem) ? elem : model.getEl();
const options: ResizerOptions = {
// Here the resizer is updated with the current element height and width
onStart(e: Event, opts: any = {}) {

Loading…
Cancel
Save