This commit is contained in:
zhuzichu
2024-01-08 16:40:19 +08:00
parent 993de241cb
commit f04bc2951f
2 changed files with 11 additions and 8 deletions

View File

@ -206,12 +206,13 @@ Window {
}
Item{
id:layout_container
property bool isMaximum : window.visibility == Window.Maximized
anchors{
fill:parent
topMargin: _offsetXY.y
bottomMargin: _offsetXY.y
leftMargin: _offsetXY.x
rightMargin: _offsetXY.x
bottomMargin: isMaximum ? 0 : _offsetXY.y
leftMargin: isMaximum ? 0 :_offsetXY.x
rightMargin: isMaximum ? 0 : _offsetXY.x
}
onWidthChanged: {
window.appBar.width = width