Skip to content

Commit

Permalink
Fix issue #125
Browse files Browse the repository at this point in the history
  • Loading branch information
hwalter committed Dec 10, 2018
1 parent 69a84ec commit d145c8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Export Layers To Files (Fast).jsx
Expand Up @@ -504,11 +504,12 @@ function addPadding() {
oldH = app.activeDocument.height.as("px");
oldW = app.activeDocument.width.as("px");


var width = (app.activeDocument.width.as("px")) + (prefs.paddingValue * 2);
var height = (app.activeDocument.height.as("px")) + (prefs.paddingValue * 2);
var widthUnit = new UnitValue(width + " pixels");
var heightUnit = new UnitValue(height + " pixels");

app.activeDocument.resizeCanvas(width, height, AnchorPosition.MIDDLECENTER);
app.activeDocument.resizeCanvas(widthUnit, heightUnit, AnchorPosition.MIDDLECENTER);
}

function createFolder(folder) {
Expand Down

0 comments on commit d145c8f

Please sign in to comment.