-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Great tool you've got here.
I know you said you've tested it on firefox and chrome, but I was testing it out on Safari for iPad (I have 8.3) and it doesn't seem to be formatting correctly. I'm at a loss as to why. The images always appear as full-width (filling the viewport), so one image per row. It does sometimes flash a more typical configuration with multiple images per row while loading, but immediately settles upon one image per row.
It looks like this is happening on the second call to perfectLayout. I made a few changes to the example codepen (using absolute positioning and reducing the number of calls to perfectLayout). By making only one call to perfect layout, it will render correctly until you rotate the screen (which correctly triggers a resize event and call to perfectLayout). This being the second time, though, it fails and it's back to one image per row (it makes no difference which orientation you go to).
Any ideas what might be going on?