summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-16 16:05:18 -0400
committerPietro Gagliardi <[email protected]>2014-10-16 16:05:18 -0400
commit229ffd37b22c2d122fec5e668cec9e2b52b2730e (patch)
tree28e663f115114af9fb2f720846271c9ab77d2834
parent31fd8a34dfed35972bc799e6ef9f5911aec46cc2 (diff)
Fixed Tab page content positioning.
-rw-r--r--newctrl/tab_windows.go3
1 files changed, 2 insertions, 1 deletions
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)
}
}