Browse Source

Update `start` in Resizer, put down the `move()` method

pull/487/head
Artur Arseniev 9 years ago
parent
commit
74bae46b2b
  1. 6
      dist/grapes.min.js
  2. 6
      index.html
  3. 2
      package.json
  4. 3
      src/utils/Resizer.js

6
dist/grapes.min.js

File diff suppressed because one or more lines are too long

6
index.html

@ -1305,10 +1305,8 @@
attributes: { class:'gjs-fonts gjs-f-b1' },
content: `
<div class="row-flex" data-columns="1" style="text-align: center" data-gjs-droppable="[data-column]" data-gjs-highlightable="false" data-gjs-resizable='{"tl":0,"tc":0,"tr":0,"cl":0,"cr":0,"bl":0,"br":0}' data-gjs-custom-name="Row">
<div class="cell-flex col1" data-column="1" style="letter-spacing: normal" data-gjs-draggable="[data-columns]" data-gjs-resizable='{"tl":0,"tc":0,"tr":0,"cl":0,"bl":0,"br":0,"bc": 0, "keyWidth": "flex-basis", "currentUnit": 0}'>
</div>
<div class="cell-flex col2" data-column="1" style="letter-spacing: normal" data-gjs-draggable="[data-columns]" data-gjs-resizable='{"tl":0,"tc":0,"tr":0,"cl":0,"bl":0,"br":0,"bc": 0, "keyWidth": "flex-basis", "currentUnit": 0}'>
</div>
<div class="cell-flex col1" data-column="1" style="letter-spacing: normal; flex-basis: 1000px" data-gjs-draggable="[data-columns]" data-gjs-resizable='{"tl":0,"tc":0,"tr":0,"cl":0,"bl":0,"br":0,"bc": 0, "keyWidth": "flex-basis", "currentUnit": 0}'></div>
<div class="cell-flex col2" data-column="1" style="letter-spacing: normal; flex-basis: 1000px" data-gjs-draggable="[data-columns]" data-gjs-resizable='{"tl":0,"tc":0,"tr":0,"cl":0,"bl":0,"br":0,"bc": 0, "keyWidth": "flex-basis", "currentUnit": 0}'></div>
</div>
<style>
.row-flex {

2
package.json

@ -1,7 +1,7 @@
{
"name": "grapesjs",
"description": "Free and Open Source Web Builder Framework",
"version": "0.12.21",
"version": "0.12.22",
"author": "Artur Arseniev",
"license": "BSD-3-Clause",
"homepage": "http://grapesjs.com",

3
src/utils/Resizer.js

@ -250,9 +250,8 @@ class Resizer {
on(doc, 'mousemove', this.move);
on(doc, 'keydown', this.handleKeyDown);
on(doc, 'mouseup', this.stop);
isFunction(this.onStart) && this.onStart(e, {docs: doc, config, el, resizer});
this.move(e);
isFunction(this.onStart) &&
this.onStart(e, {docs: doc, config, el, resizer});
}
/**

Loading…
Cancel
Save