This commit is contained in:
朱子楚\zhuzi
2024-01-02 22:33:47 +08:00
parent 924ce5d127
commit 284afed52f
4 changed files with 50 additions and 31 deletions

View File

@ -64,6 +64,7 @@ Window {
property int _realHeight
property int _realWidth
property int _appBarHeight: appBar.height
property bool _enableMarginsBottomLeftRight: false
id:window
color:"transparent"
Component.onCompleted: {
@ -209,6 +210,9 @@ Window {
anchors{
fill:parent
topMargin: _offsetXY.y
bottomMargin: _enableMarginsBottomLeftRight ? _offsetXY.y : 0
leftMargin: _enableMarginsBottomLeftRight ? _offsetXY.x : 0
rightMargin: _enableMarginsBottomLeftRight ? _offsetXY.x : 0
}
onWidthChanged: {
window.appBar.width = width