aarzilli / gdlv

GUI frontend for Delve
Other
1.33k stars 48 forks source link

using smaller screen can cause windows to become inaccessible #34

Closed rogpeppe closed 5 years ago

rogpeppe commented 5 years ago

I was using gdlv on a large external screen, then later on my laptop screen. When I tried to create the Goroutines window on my laptop, it did not appear.

After some investigation, I found the SavedBounds field in .config/gdlv file, which contained the following values:

{
    "": {
        "H": 1025,
        "W": 1920,
        "X": 0,
        "Y": 0
    },
    "Globals": {
        "H": 300,
        "W": 500,
        "X": 76,
        "Y": 76
    },
    "Goroutines": {
        "H": 344,
        "W": 619,
        "X": 583,
        "Y": 1265
    },
    "Stacktrace": {
        "H": 300,
        "W": 500,
        "X": 76,
        "Y": 76
    }
}

The Y value for Goroutines is more than the vertical size of my laptop screen. When I manually removed the SavedBounds section, I could successfully create and see the window again.