forked from jakesgordon/sprite-factory
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Naive implementation of padding for the :packed layout.
We simply add padding to the bottom and right of every image, without trying to figure out if we are at the edge of the image or not. This solves my own need for padding: getting rid of display bugs on touch devices due to scaling (zooming) the document. This is resolved by adding 1px of padding around all images.
- Loading branch information
1 parent
dd4bb49
commit acc40e9
Showing
3 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters