Merge pull request #78 from themarcq/patch-1

useless gaps are now globally equivalent
This commit is contained in:
Luke Bonham 2014-12-08 19:33:31 +01:00
commit 0c8671085b
1 changed files with 2 additions and 2 deletions

View File

@ -80,8 +80,8 @@ local function tile_group(cls, wa, orientation, fact, group)
local i = c - group.first +1
geom[width] = size - global_border - (bw * 2)
geom[height] = math.floor(unused * fact[i] / total_fact) - (bw * 2)
geom[x] = group.coord + global_border + (useless_gap / 2)
geom[y] = coord + global_border + (useless_gap / 2)
geom[x] = group.coord + global_border
geom[y] = coord + global_border
coord = coord + geom[height]
unused = unused - geom[height]