Skip to content

Commit

Permalink
Issue #414: part 9: persist layer opacity when resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
juliandescottes committed Mar 24, 2016
1 parent add97ba commit 99b00bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/controller/settings/resize/ResizeController.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@
};

ns.ResizeController.prototype.resizeLayer_ = function (layer) {
var opacity = layer.getOpacity();
var resizedFrames = layer.getFrames().map(this.resizeFrame_.bind(this));
return pskl.model.Layer.fromFrames(layer.getName(), resizedFrames);
var resizedLayer = pskl.model.Layer.fromFrames(layer.getName(), resizedFrames);
resizedLayer.setOpacity(opacity);
return resizedLayer;
};

ns.ResizeController.prototype.onResizeContentChange_ = function (evt) {
Expand Down

0 comments on commit 99b00bc

Please sign in to comment.