Permalink
Browse files

Fix padTo (broken by prev commit)

  • Loading branch information...
1 parent 22a4f57 commit c6a9eeabf9e4a4b55f163c88b8098c2ba55a60bd @andreyvit committed Jan 22, 2014
Showing with 6 additions and 0 deletions.
  1. +6 −0 main.js
View
@@ -1292,6 +1292,12 @@
width: component.padto.width.value - (pixmap.width + padding.left + padding.right),
height: component.padto.height.value - (pixmap.height + padding.top + padding.bottom)
};
+ if (extra.width > 0) {
+ extraPadding.width += extra.width;
+ }
+ if (extra.height > 0) {
+ extraPadding.height += extra.height;
+ }
}
var total, remainder;

0 comments on commit c6a9eea

Please sign in to comment.