mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 11:17:15 +08:00
fix bug #361
This commit is contained in:
parent
9a48880e84
commit
95a6be3d28
@ -304,8 +304,7 @@ Window {
|
|||||||
return lifecycle.createRegister(window,path)
|
return lifecycle.createRegister(window,path)
|
||||||
}
|
}
|
||||||
function moveWindowToDesktopCenter(){
|
function moveWindowToDesktopCenter(){
|
||||||
window.x = (Screen.desktopAvailableWidth - window.width)/2
|
return framless_helper.moveWindowToDesktopCenter()
|
||||||
window.y = (Screen.desktopAvailableHeight - window.height)/2
|
|
||||||
}
|
}
|
||||||
function onResult(data){
|
function onResult(data){
|
||||||
if(_pageRegister){
|
if(_pageRegister){
|
||||||
|
@ -303,8 +303,7 @@ Window {
|
|||||||
return lifecycle.createRegister(window,path)
|
return lifecycle.createRegister(window,path)
|
||||||
}
|
}
|
||||||
function moveWindowToDesktopCenter(){
|
function moveWindowToDesktopCenter(){
|
||||||
window.x = (Screen.desktopAvailableWidth - window.width)/2
|
return framless_helper.moveWindowToDesktopCenter()
|
||||||
window.y = (Screen.desktopAvailableHeight - window.height)/2
|
|
||||||
}
|
}
|
||||||
function onResult(data){
|
function onResult(data){
|
||||||
if(_pageRegister){
|
if(_pageRegister){
|
||||||
|
Loading…
Reference in New Issue
Block a user