Re:The algorithm for a perfectly balanced photo gallery
by colinm on Monday August 12, 2013 @08:07AM
(#6198736)
btw this breaks zoom.
[ Parent
| on HN ]
Re:The algorithm for a perfectly balanced photo gallery
by user24 on Monday August 12, 2013 @09:13AM
(#6198980)
Your comment is almost useless. On which browser? Which operating system? What do you expect to happen? What actually happens?
Re:The algorithm for a perfectly balanced photo gallery
by PavlovsCat on Monday August 12, 2013 @09:43AM
(#6199109)
Bug reports can only be as useful as the people who receive them. Try zooming with any browser; you'd expect it to, hum, zoom, but what actually happens is that after zooming, the pictures get resized again, so no matter how you zoom, it always looks the same.
Re:The algorithm for a perfectly balanced photo gallery
by ionelm on Tuesday August 13, 2013 @04:18AM
(#6204573)
Not only that it breaks zoom, at certain window ratios (eg: 480x800) is completely fails - I get this error: TypeError: solution[(n - 1)] is undefined @ http://www.chromatic.io/application.a3c7ec1cbcca0f5a77fbc1dc...
I've done stuff like this in the past, if you want something that works: https://github.com/ionelmc/jquery-gp-gallery
Re:The algorithm for a perfectly balanced photo gallery
by jongleberry on Thursday August 22, 2013 @04:14PM
(#6259763)
i think i found the problem with the algorithm. sometimes it returns an empty row. the javascript version throws while the python version doesn't. i fixed it in my fork by just reducing the number of rows until it doesn't throw: https://github.com/jonathanong/linear-partition