mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 20:21:01 +08:00
[windows] Fix pos/getpos calls
This commit is contained in:
parent
dd20985952
commit
0c6864c7ed
@ -147,11 +147,11 @@ func (f *Frontend) WindowCenter() {
|
||||
|
||||
func (f *Frontend) WindowSetPosition(x, y int) {
|
||||
runtime.LockOSThread()
|
||||
f.mainWindow.SetPosition(x, y)
|
||||
f.mainWindow.SetPos(x, y)
|
||||
}
|
||||
func (f *Frontend) WindowGetPosition() (int, int) {
|
||||
runtime.LockOSThread()
|
||||
return f.mainWindow.GetPosition()
|
||||
return f.mainWindow.Pos()
|
||||
}
|
||||
|
||||
func (f *Frontend) WindowSetSize(width, height int) {
|
||||
|
Loading…
Reference in New Issue
Block a user