Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 11 additions & 17 deletions src/dde-control-center/plugin/DccSettingsView.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 - 2027 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick 2.15
import QtQuick.Controls 2.15
Expand All @@ -15,6 +15,7 @@ Flickable {
property bool scrollBarVisible: false

contentHeight: centralItem.height + bottomItem.height - (bottomItem.height > 0 ? bottomItem.anchors.topMargin : 0)
clip: true
ScrollBar.vertical: ScrollBar {
id: vbar
width: 10
Expand All @@ -34,22 +35,15 @@ Flickable {
id: footer
DccRowView {}
}
Item {
y: control.contentY
height: control.height - bottomItem.height
width: parent.width
clip: true
DccLoader {
id: centralItem
y: -control.contentY
focus: true
dccObjItem: parent
anchors {
left: parent.left
right: parent.right
leftMargin: control.margin
rightMargin: control.margin
}
DccLoader {
id: centralItem
focus: true
dccObjItem: control
anchors {
left: parent.left
right: parent.right
leftMargin: control.margin
rightMargin: control.margin
}
}
DccLoader {
Expand Down
Loading