From 03f2873f686ac6d18ddf1d1e6e68b097e33533d4 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 5 Aug 2014 20:43:56 -0400 Subject: [PATCH] Set vertical alignment of Labels next to Areas on GTK+. --- redo/area_unix.go | 3 ++- redo/table_unix.go | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/redo/area_unix.go b/redo/area_unix.go index cc9fe73..b6c70cb 100644 --- a/redo/area_unix.go +++ b/redo/area_unix.go @@ -406,5 +406,6 @@ func (a *area) commitResize(c *allocation, d *sizing) { } func (a *area) getAuxResizeInfo(d *sizing) { - basegetAuxResizeInfo(a, d) + // a Label to the left of an Area should be vertically aligned to the top + d.shouldVAlignTop = true } diff --git a/redo/table_unix.go b/redo/table_unix.go index c2d59b6..f6ac068 100644 --- a/redo/table_unix.go +++ b/redo/table_unix.go @@ -116,6 +116,5 @@ func (t *table) commitResize(c *allocation, d *sizing) { func (t *table) getAuxResizeInfo(d *sizing) { // a Label to the left of a Table should be vertically aligned to the top - // TODO do the same with Area d.shouldVAlignTop = true }