Added gravity support for flow layout
Removed unused padding attrs.