summaryrefslogtreecommitdiff
path: root/place.go
diff options
context:
space:
mode:
Diffstat (limited to 'place.go')
-rw-r--r--place.go21
1 files changed, 13 insertions, 8 deletions
diff --git a/place.go b/place.go
index de20467..ddd488d 100644
--- a/place.go
+++ b/place.go
@@ -77,20 +77,25 @@ func (tk *guiWidget) placeWidgets(startW int, startH int) (int, int) {
case widget.Window:
newW := startW
newH := startH
- var maxH int = 0
+ // var maxH int = 0
for _, child := range tk.children {
child.placeWidgets(newW, newH)
sizeW, sizeH := child.Size()
- if sizeW < 20 {
- sizeW = 20
- }
+ /*
+ if sizeW < 20 {
+ sizeW = 20
+ }
+ */
newW += sizeW
- if sizeH > maxH {
- maxH = sizeH
- }
+ newH += sizeH
+ /*
+ if sizeH > maxH {
+ maxH = sizeH
+ }
+ */
}
- return newW - startW, maxH
+ return newW - startW, newH - startH
case widget.Tab:
case widget.Grid:
return tk.placeGrid(startW, startH)