Skip to content

Packery-sizer should default to 1x1 pixel grid when no sizing found #28

@joshuahiggins

Description

@joshuahiggins

Issue #27 brings to light the fact that there's no default sizing set for the Packery grid.

The problem is that this repository is purely JavaScript, but the grid that Packery is built over relies on a base grid size being set via the .packery-sizer CSS class or the row-height and column-width attributes. If no sizing is found, there is currently no default and the grid will get, well, wonky.

Ideally, a 1 pixel height and width would be ideal defaults if no sizing is found, however how can we determine properly if there is no sizing? Currently the default of the repository is to look toward .packery-sizer, and with no way of determining whether this element has sizing attributes set in an external CSS file, I'm at a loss of how to provide a default fallback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions