Skip to content

Commit

Permalink
Update canvas offset on resize of panels
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Feb 8, 2018
1 parent a58bfd0 commit 48a944b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/panels/view/PanelView.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ module.exports = Backbone.View.extend({
silentFrames: 1,
avoidContainerUpdate: 1,
prefix: editor.getConfig().stylePrefix,
onEnd() {
em && em.trigger('change:canvasOffset');
},
posFetcher: (el, { target }) => {
const style = el.style;
const config = resizer.getConfig();
Expand Down

0 comments on commit 48a944b

Please sign in to comment.