codeforboston / codeforboston/bostongreenmap

Masonry does not place images optimally in Firefox

Open
#62 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
22
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Masonry works well in other browsers except Firefox. In Firefox, it distributes images incorrectly, leaving large columns of white space unfilled.

In Firefox 34.0.5:
![screen shot 2015-01-14 at 11 45 43 am](https://cloud.githubusercontent.com/assets/5004319/5742816/f63fc9aa-9be2-11e4-905a-9042fb5cc952.png)

Correct behavior in Chrome:
![screen shot 2015-01-14 at 11 46 01 am](https://cloud.githubusercontent.com/assets/5004319/5742817/f640ad20-9be2-11e4-9a40-36990e0d9f10.png)

Here is the relevant Masonry code: https://github.com/codeforboston/bostongreenmap/blob/master/client/js/app.js#L354-L360

Here is the relevant CSS code:
https://github.com/codeforboston/bostongreenmap/blob/master/client/scss/_results.scss

Relevant Handlebars template:
https://github.com/codeforboston/bostongreenmap/blob/master/client/templates/resultItem.hbs

And Masonry docs: http://masonry.desandro.com/

We need Firefox to place the images as they are placed in Chrome and other browsers. Any thoughts on what is causing this?

Here is some possibly related discussion: https://github.com/desandro/masonry/issues/166#issuecomment-3479151
This issue concerns percentage widths, so it doesn't seem relevant.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.