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:
parent
81b5e6e54b
commit
8792d6a4ba
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue