Class: UnderOs::UI::Collection::Styles
- Defined in:
- lib/under_os/ui/collection/styles.rb
Overview
This thing catches styles from the collection element and adjusts the layout settings for them
Class Method Summary collapse
Class Method Details
.build(collection, stylesheet) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/under_os/ui/collection/styles.rb', line 6 def self.build(collection, stylesheet) item = UnderOs::UI::Collection::Item.for(collection, stylesheet) collection.layout.item_size = item.size collection.layout.items_spacing = item.style.marginLeft + item.style.marginRight collection.layout.rows_spacing = item.style.marginTop + item.style.marginBottom # TODO header/footer end |