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:
Felix Bier 2013-01-30 09:23:28 +01:00 committed by Uli Schlachter
parent fca2f3e58d
commit e4be0017ff
1 changed files with 1 additions and 1 deletions

View File

@ -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