andlabs / andlabs/ui

Using groups in OSX seems to add the top of the window until resize

未關閉
#359 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Go
星號
8.4k
分支
639
PR 合併指標
30 天內沒有已合併 PR

描述

If I use groups it looks fine in linux but in OSX a bunch of padding gets added to the top of the window. Looks to be the height of the combined children. As soon as the window is resized this magically fixes itself.

Rough demo program:

```
package main

import (
"github.com/andlabs/ui"
)

func main(){
ui.Main(func(){
window := ui.NewWindow("boo", 100, 30, false)
vbox := ui.NewVerticalBox()
vbox.SetPadded(true)

for i := 0; i < 10; i ++ {
grp := ui.NewGroup("Group")
grp.SetChild(ui.NewButton("THING"))
vbox.Append(grp,true)
}
window.SetChild(vbox)
window.Show()
})
}
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。