Skip to content

Commit

Permalink
Removed unecessary logging
Browse files Browse the repository at this point in the history
  • Loading branch information
DWilliames committed Feb 13, 2018
1 parent 060cf9e commit d5df224
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Paddy.sketchplugin/Contents/Sketch/symbols.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function updateForSymbolInstance(symbol) {
}
}

if (layer.frame().width() > maxWidthTextLayer.width) {
if (layer.frame().width() >= maxWidthTextLayer.width) {
maxWidthTextLayer.width = layer.frame().width()
maxWidthTextLayer.layer = layer
}
Expand Down Expand Up @@ -293,8 +293,6 @@ function updateForSymbolInstance(symbol) {

// If the max width text layer is right aligned – then resize the symbol from the right
if (maxWidthTextLayer.layer && maxWidthTextLayer.layer.textAlignment() == 1) {
print('Original width: ' + originalSymbolWidth)

var xDiff = originalSymbolWidth - symbol.frame().width()
symbol.frame().setX(symbol.frame().x() + xDiff)
}
Expand Down

0 comments on commit d5df224

Please sign in to comment.