mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-02-02 19:27:38 +08:00
update
This commit is contained in:
parent
72610da66e
commit
70e525f51e
@ -175,13 +175,19 @@ Window {
|
|||||||
id:layout_container
|
id:layout_container
|
||||||
property int offsetX: {
|
property int offsetX: {
|
||||||
if(window.visibility === Window.Maximized){
|
if(window.visibility === Window.Maximized){
|
||||||
return Math.abs(window.x-Screen.virtualX)
|
var dx = window.x-Screen.virtualX
|
||||||
|
if(dx<0){
|
||||||
|
return Math.abs(dx)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
property int offsetY: {
|
property int offsetY: {
|
||||||
if(window.visibility === Window.Maximized){
|
if(window.visibility === Window.Maximized){
|
||||||
return Math.abs(window.y-Screen.virtualY)
|
var dy = window.y-Screen.virtualY
|
||||||
|
if(dy<0){
|
||||||
|
return Math.abs(dy)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
@ -174,13 +174,19 @@ Window {
|
|||||||
id:layout_container
|
id:layout_container
|
||||||
property int offsetX: {
|
property int offsetX: {
|
||||||
if(window.visibility === Window.Maximized){
|
if(window.visibility === Window.Maximized){
|
||||||
return Math.abs(window.x-Screen.virtualX)
|
var dx = window.x-Screen.virtualX
|
||||||
|
if(dx<0){
|
||||||
|
return Math.abs(dx)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
property int offsetY: {
|
property int offsetY: {
|
||||||
if(window.visibility === Window.Maximized){
|
if(window.visibility === Window.Maximized){
|
||||||
return Math.abs(window.y-Screen.virtualY)
|
var dy = window.y-Screen.virtualY
|
||||||
|
if(dy<0){
|
||||||
|
return Math.abs(dy)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user