Fixed Tab page content positioning.

This commit is contained in:
Pietro Gagliardi 2014-10-16 16:05:18 -04:00
parent 31fd8a34df
commit 229ffd37b2
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}
}