mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix : fire resize event after loading piskel
This commit is contained in:
parent
46b267c2a4
commit
569f42b7e2
@ -15,6 +15,9 @@
|
|||||||
this.currentFrameIndex = 0;
|
this.currentFrameIndex = 0;
|
||||||
|
|
||||||
this.layerIdCounter = 1;
|
this.layerIdCounter = 1;
|
||||||
|
|
||||||
|
$.publish(Events.PISKEL_RESET);
|
||||||
|
$.publish(Events.FRAME_SIZE_CHANGED);
|
||||||
};
|
};
|
||||||
|
|
||||||
ns.PiskelController.prototype.init = function () {
|
ns.PiskelController.prototype.init = function () {
|
||||||
@ -22,9 +25,6 @@
|
|||||||
pskl.app.shortcutService.addShortcut('down', this.selectNextFrame.bind(this));
|
pskl.app.shortcutService.addShortcut('down', this.selectNextFrame.bind(this));
|
||||||
pskl.app.shortcutService.addShortcut('n', this.addFrameAtCurrentIndex.bind(this));
|
pskl.app.shortcutService.addShortcut('n', this.addFrameAtCurrentIndex.bind(this));
|
||||||
pskl.app.shortcutService.addShortcut('shift+n', this.duplicateCurrentFrame.bind(this));
|
pskl.app.shortcutService.addShortcut('shift+n', this.duplicateCurrentFrame.bind(this));
|
||||||
|
|
||||||
$.publish(Events.PISKEL_RESET);
|
|
||||||
$.publish(Events.FRAME_SIZE_CHANGED);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ns.PiskelController.prototype.getHeight = function () {
|
ns.PiskelController.prototype.getHeight = function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user