Added Expand Modes
commitfbba41ddaa3012720819e4c803542a73adf854e8
authorsirkha <sirkha@gmail.com>
Thu, 2 Jan 2014 08:09:08 +0000 (2 02:09 -0600)
committerUli Schlachter <psychon@znc.in>
Thu, 13 Mar 2014 11:11:04 +0000 (13 12:11 +0100)
tree5c816fba2cca64459275efb5c8d6148aa95feb0a
parent601dc232db6a812594ab0ba5ab1e524b1c438e83
Added Expand Modes

Added set_expand function with options of "none" "outside" or "inside" modes.
The "inside" mode is the default and will result in the original behavior. The
main benefit is being able to actually center a widget in the available space
with options of how to draw the outside widgets (expand to take the space,
or not.) Further functionality can be had by ommiting one of the outside
widgets. Set default layout mode in the constructor.

Signed-off-by: Uli Schlachter <psychon@znc.in>
lib/wibox/layout/align.lua.in