Make the Settings dialog content scrollable

Adding the Org Path group pushed the settings content past the dialog's
fixed height, so the lower groups and the Close button overflowed the
dialog bounds. Wrap the content ColumnLayout in a ScrollView (vertical
only; the inner layout matches the viewport width so Layout.fillWidth
children still size correctly) and raise the default height from 400 to
520 so the common case fits without scrolling. Content that still exceeds
the dialog now scrolls instead of overflowing.
This commit is contained in:
Levi Neely 2026-10-02 12:14:12 +02:00
parent c4dc18cbfc
commit 2f040bf810
1 changed files with 24 additions and 13 deletions

View File

@ -9,7 +9,7 @@ Dialog {
modal: true
standardButtons: Dialog.Close
width: 450
height: 400
height: 520
x: (parent.width - width) / 2
y: (parent.height - height) / 2
@ -80,7 +80,17 @@ Dialog {
}
}
contentItem: ColumnLayout {
contentItem: ScrollView {
id: contentScroll
clip: true
// Only scroll vertically; the inner layout matches the viewport width.
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
contentWidth: availableWidth
ColumnLayout {
// Match the scroll viewport width so Layout.fillWidth children size
// correctly and no horizontal scrolling is needed.
width: contentScroll.availableWidth
spacing: 16
// --- Org Path ---
@ -310,3 +320,4 @@ Dialog {
}
}
}
}