From dcb505fd01b5fb5c527f3376154c8d970a67789c Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 1 Sep 2014 10:04:48 -0400 Subject: Implemented Grid halign Center. --- grid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grid.go') diff --git a/grid.go b/grid.go index 65c4d52..1b4f7bc 100644 --- a/grid.go +++ b/grid.go @@ -251,7 +251,7 @@ func (g *grid) allocate(x int, y int, width int, height int, d *sizing) (allocat case LeftTop: // do nothing; this is the default case Center: - // TODO + cell.xoff = (colwidths[cell.gridx] - cell.width) / 2 case RightBottom: cell.xoff = colwidths[cell.gridx] - cell.width case Fill: -- cgit v1.2.3