From 229ffd37b22c2d122fec5e668cec9e2b52b2730e Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 16 Oct 2014 16:05:18 -0400 Subject: [PATCH] Fixed Tab page content positioning. --- newctrl/tab_windows.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newctrl/tab_windows.go b/newctrl/tab_windows.go index befed44..c0c3bc9 100644 --- a/newctrl/tab_windows.go +++ b/newctrl/tab_windows.go @@ -109,6 +109,7 @@ func (t *tab) resize(x int, y int, width int, height int, d *sizing) { for i, _ := range t.tabs { // because each widget is actually a child of the Window, the origin is the one we calculated above t.tabs[i].resize(int(r.left), int(r.top), int(r.right - r.left), int(r.bottom - r.top), d) - t.children[i].resize(int(r.left), int(r.top), int(r.right - r.left), int(r.bottom - r.top), d) + // TODO get the actual client rect + t.children[i].resize(int(0), int(0), int(r.right - r.left), int(r.bottom - r.top), d) } }