suprb / Nested

Gap free multi column grid
1.69k stars 248 forks source link

"nested-moved" class is not resized by ratio? #51

Closed shunfan closed 9 years ago

shunfan commented 9 years ago
<div class="box size32 nested-moved" ... width: 123px; height: 60px; ... ></div>

Since the class name includes "size32", the ratio of the width and height should be 3:2 instead of 2:1 (The right one could be 93px, 60px, because the height is limited to 60px at maximum during that specific condition). I have tried to read your codes, but fail to fix that. It usually happens on last several pictures when they are moved to fill some blank room among other pictures.

shunfan commented 9 years ago

The issue is gone if I set resizeToFit to false, does it mean resizeToFit will resize the image non-proportionally?