AllenDang / giu

Cross platform rapid GUI framework for golang based on Dear ImGui.
MIT License
2.11k stars 127 forks source link

[bug] Window grows until filling screen then app crashes #810

Open home-gihub opened 4 days ago

home-gihub commented 4 days ago

What happend?

Title?

Code example

main.go ```golang package main import ( g "github.com/AllenDang/giu" ) func loop() { g.Window("main").Layout( g.Labelf("hi"), ) } func main() { wnd := g.NewMasterWindow("main", 400, 200, 0) wnd.Run(loop) } ```

To Reproduce

  1. Run my code
  2. see the crash...

Version

(latest)

OS

Windows 10

gucio321 commented 1 day ago

Hi, thats really strange... could you try to run example from github.com/AllenDang/cimgui-go and lmk if it also fails? Giu has some extra logic about window handling.

alexkallai commented 24 minutes ago

Hi, thats really strange... could you try to run example from github.com/AllenDang/cimgui-go and lmk if it also fails? Giu has some extra logic about window handling.

Hi, I got the same issue as the issue creator, on Win10 as well, and for me the example from github.com/AllenDang/cimgui-go is working fine.