wibox.layout.fixed: Fix fill space

The last widget always took up the remaining
space even though fill_space(false)
had been called on the layout.

This got broken in commit 9d333113dd.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Björn Åström 2013-10-03 07:11:09 +02:00 committed by Uli Schlachter
parent 81b5e6e54b
commit 8792d6a4ba
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ function fixed:draw(wibox, cr, width, height)
if self.dir == "y" then
x, y = 0, pos
w, h = width, height - pos
if k ~= #self.widgets or not self.fill_space then
if k ~= #self.widgets or not self._fill_space then
_, h = base.fit_widget(v, w, h);
end
pos = pos + h
@ -35,7 +35,7 @@ function fixed:draw(wibox, cr, width, height)
else
x, y = pos, 0
w, h = width - pos, height
if k ~= #self.widgets or not self.fill_space then
if k ~= #self.widgets or not self._fill_space then
w, _ = base.fit_widget(v, w, h);
end
pos = pos + w