mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-06 18:55:58 +08:00
update
This commit is contained in:
@ -179,7 +179,7 @@ Window {
|
||||
if(window.visibility === Window.Maximized){
|
||||
var dx = window.x-Screen.virtualX
|
||||
if(dx<0){
|
||||
return Math.abs(dx)
|
||||
return Math.abs(dx+1)
|
||||
}
|
||||
}
|
||||
return 0
|
||||
@ -188,7 +188,7 @@ Window {
|
||||
if(window.visibility === Window.Maximized){
|
||||
var dy = window.y-Screen.virtualY
|
||||
if(dy<0){
|
||||
return Math.abs(dy)
|
||||
return Math.abs(dy+1)
|
||||
}
|
||||
}
|
||||
return 0
|
||||
@ -290,10 +290,12 @@ Window {
|
||||
function moveWindowToDesktopCenter(){
|
||||
screen = Qt.application.screens[FluTools.cursorScreenIndex()]
|
||||
window.setGeometry((Screen.width-window.width)/2+Screen.virtualX,(Screen.height-window.height)/2+Screen.virtualY,window.width,window.height)
|
||||
maximumWidth = fixSize ? width : 16777215
|
||||
maximumHeight = fixSize ? height : 16777215
|
||||
minimumWidth = fixSize ? width : 0
|
||||
minimumHeight = fixSize ? height : 0
|
||||
if(fixSize){
|
||||
maximumWidth = width
|
||||
maximumHeight = height
|
||||
minimumWidth = width
|
||||
minimumHeight = height
|
||||
}
|
||||
}
|
||||
function onResult(data){
|
||||
if(_pageRegister){
|
||||
|
Reference in New Issue
Block a user