Compare commits
No commits in common. "0d05fdb30703bf82b20d752128f496ab13e339ed" and "bab8c1f3830d1ebaf67d8427fda524b2fa122be5" have entirely different histories.
0d05fdb307
...
bab8c1f383
Binary file not shown.
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 31 KiB |
@ -26,15 +26,8 @@ func newWindow(w fyne.Window, layout LayoutContract) Window {
|
|||||||
w.CenterOnScreen()
|
w.CenterOnScreen()
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
/**
|
|
||||||
* Bug fixed.
|
|
||||||
* When starting the program, sometimes the window was displayed incorrectly.
|
|
||||||
*/
|
|
||||||
time.Sleep(time.Millisecond * 500)
|
time.Sleep(time.Millisecond * 500)
|
||||||
size := w.Canvas().Size()
|
w.Resize(fyne.Size{Width: 1040, Height: 600})
|
||||||
size.Width += 1
|
|
||||||
size.Height += 1
|
|
||||||
w.Resize(size)
|
|
||||||
}()
|
}()
|
||||||
|
|
||||||
return Window{
|
return Window{
|
||||||
|
Loading…
Reference in New Issue
Block a user