Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/judas-christ/justifizer
Simple row based grid layout
https://github.com/judas-christ/justifizer
Last synced: about 1 month ago
JSON representation
Simple row based grid layout
- Host: GitHub
- URL: https://github.com/judas-christ/justifizer
- Owner: judas-christ
- License: mit
- Created: 2015-02-18T14:22:34.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-22T21:55:37.000Z (over 9 years ago)
- Last Synced: 2024-04-14T12:53:36.656Z (9 months ago)
- Language: JavaScript
- Size: 168 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Justifizer
Simple row based grid layout
## Usage
To layout the children of an element:
```js
justifize(container, [options])
```To restore original layout:
```js
justifize.destroy(container)
```Responsive layout (in modern browsers):
```js
window.onresize = justifize.bind(null, container);
```### container
Type: `HTMLElement` or `String`
Either an element, or a selector.
### options
Options object.
#### minHeight
Type: `Number`
The minimum height of each row. The final height will depend on the items in the row.
## License
MIT