Incorrect calculation of unused size (FS#1108)
Signed-off-by: Felix Bier <flx.bier@googlemail.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
fca2f3e58d
commit
e4be0017ff
|
@ -67,7 +67,7 @@ local function tile_group(cls, wa, orientation, fact, group)
|
|||
coord = coord + geom[height] + cls[c].border_width * 2
|
||||
unused = unused - geom[height] - cls[c].border_width * 2
|
||||
total_fact = total_fact - fact[i]
|
||||
used_size = math.max(used_size, geom[width]) + cls[c].border_width * 2
|
||||
used_size = math.max(used_size, geom[width] + cls[c].border_width * 2)
|
||||
end
|
||||
|
||||
return used_size
|
||||
|
|
Loading…
Reference in New Issue