You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For certain widths of the container the ratio of the tiles are not kept, even though the function fixSize is set to 0, which should always keep the correct ratio's.
When the container width for example is 835, the ratio's are not kept.
var wall = new Freewall("#freewall");
wall.reset({
selector: '.brick',
animate: true,
fixSize: 0,
cellW: function(cwidth){
var cellW = 300;
return cellW;
},
cellH:function(cheight){
var cellH = 300;
return cellH;
},
onResize: function() {
wall.fitWidth(835);
}
});
wall.fitWidth(835);
Also, is there a way to obtain the brick inside the cellW or cellH function? This way I might be able to force the ratio's myself inside the cellW and cellH functions by looking at the class of the brick.
For certain widths of the container the ratio of the tiles are not kept, even though the function fixSize is set to 0, which should always keep the correct ratio's.
When the container width for example is 835, the ratio's are not kept.
However, when I fit to a width of 800, it is working fine and it is keeping the ratio's. An example of this issue can be found here:
http://laurensverspeek.nl/freewall-fixsize-test/example/fixsize-not-working.html
(http://laurensverspeek.nl/freewall-fixsize-test/example/fixsize-working.html shows the version with a width of 800, which is working)
The text was updated successfully, but these errors were encountered: