Fix Align Layout Fit Behavior
commitceaeaedb5b1cd98b9ae1e04d6011219a3a11e228
authorsirkha <sirkha@gmail.com>
Sat, 4 Jan 2014 15:10:37 +0000 (4 09:10 -0600)
committerUli Schlachter <psychon@znc.in>
Thu, 13 Mar 2014 11:05:50 +0000 (13 12:05 +0100)
treeb1b0dbe82eb688bfde252f4bae0776a53041e24b
parentc855b1babb0b2e8c171e16ea6f40da668d98a372
Fix Align Layout Fit Behavior

This changes the align layout fit function so that align:fit will not return
more space than is actually needed by its sub-widgets. Changes to align:draw
were also required so that any widget assigned to the middle slot will expand
to fill the remaining space.

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