Browse Source

Little fix in resizer

pull/261/head
Artur Arseniev 9 years ago
parent
commit
2f4d0b606a
  1. 1
      src/commands/view/SelectComponent.js
  2. 1
      src/utils/Resizer.js

1
src/commands/view/SelectComponent.js

@ -366,7 +366,6 @@ module.exports = {
const {store, selectedHandler} = options;
const onlyHeight = ['tc', 'bc'].indexOf(selectedHandler) >= 0;
const onlyWidth = ['cl', 'cr'].indexOf(selectedHandler) >= 0;
const unit = 'px';
const style = modelToStyle.getStyle();

1
src/utils/Resizer.js

@ -291,7 +291,6 @@ class Resizer {
doc.off('keydown', this.handleKeyDown);
doc.off('mouseup', this.stop);
this.updateRect(1);
this.selectedHandler = '';
// Stop callback
if (typeof this.onEnd === 'function') {

Loading…
Cancel
Save