packery icon indicating copy to clipboard operation
packery copied to clipboard

🐛 Fix stamps on high dpi screens

Open arcs- opened this issue 5 years ago • 0 comments

The this._getElementOffset( elem ) in _manageStamp( elem ) returns the positions with decimal places, this results in the misalignment of the the items. E.g., in a gutter of 50px, a stamp with size 50px and position 0.0034 will use its cell and the following one. (I experienced this mostly on high DPI screens). Rounding the numbers will correct the issue, the "item"'s position is already rounded, just the stamps are not.

arcs- avatar Nov 11 '19 23:11 arcs-