Compare commits

...

2 Commits

Author SHA1 Message Date
0d05fdb307
Changed the screenshot in README.md. 2024-02-17 19:48:50 +06:00
8e6fb90482
Code improvement.
And added a comment to the code.
2024-02-17 19:45:28 +06:00
2 changed files with 8 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -26,8 +26,15 @@ func newWindow(w fyne.Window, layout LayoutContract) Window {
w.CenterOnScreen()
go func() {
/**
* Bug fixed.
* When starting the program, sometimes the window was displayed incorrectly.
*/
time.Sleep(time.Millisecond * 500)
w.Resize(fyne.Size{Width: 1040, Height: 600})
size := w.Canvas().Size()
size.Width += 1
size.Height += 1
w.Resize(size)
}()
return Window{