perfect-layout icon indicating copy to clipboard operation
perfect-layout copied to clipboard

No Ratio

Open aaronhb opened this issue 8 years ago • 1 comments

What is i am only able to pull an array of dynamic images and am not able to get ratio? I tried on codepen but locks up and kills browser.

aaronhb avatar Mar 28 '16 13:03 aaronhb

ratio is needed to calculate the layout. Having some backend that creates the list with sources and ratios is probably the best option. To work only on the clientside you need to wait for all the images to be loaded in order to read their dimensions to get the ratios.

Said that, probably a better handling of the missing values may be a good idea just not to hang the browser and give back the original list untouched while showing a warning maybe.

axyz avatar Mar 28 '16 13:03 axyz