Skip to content

Commit

Permalink
update fixSize option
Browse files Browse the repository at this point in the history
  • Loading branch information
kombai committed Dec 5, 2014
1 parent f0f5e0e commit 15225f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freewall.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
delay: 0, // slowdown active block;
engine: 'giot', // 'giot' is a person name;
fixSize: null, // resize + adjust = fill gap;
//fixSize: 0, allow adjust size = no fill gap;
//fixSize: 0, resize but keep ratio = no fill gap;
//fixSize: 1, no resize + no adjust = no fill gap;
gutterX: 15, // width spacing between blocks;
gutterY: 15, // height spacing between blocks;
Expand Down Expand Up @@ -71,7 +71,7 @@

isNaN(fixSize) && (fixSize = null);
(fixSize == null) && (fixSize = setting.fixSize);
var makeRound = (fixSize == 1) ? "ceil" : "round";
var makeRound = (fixSize >= 1) ? "ceil" : "round";
// store original size;

$item.attr('data-height') == null && $item.attr('data-height', $item.height());
Expand Down

0 comments on commit 15225f1

Please sign in to comment.