mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
[windows] Fix pos/getpos calls
This commit is contained in:
parent
dd20985952
commit
0c6864c7ed
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue