Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuzichu520 committed Dec 20, 2023
1 parent 72610da commit 70e525f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/Qt5/imports/FluentUI/Controls/FluWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,19 @@ Window {
id:layout_container
property int offsetX: {
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
}
property int offsetY: {
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
}
Expand Down
10 changes: 8 additions & 2 deletions src/Qt6/imports/FluentUI/Controls/FluWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,19 @@ Window {
id:layout_container
property int offsetX: {
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
}
property int offsetY: {
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
}
Expand Down

0 comments on commit 70e525f

Please sign in to comment.