Skip to content

Commit 86c2956

Browse files
committed
Improve GlobalSettings dialog layout & resizing
1 parent 145a4cd commit 86c2956

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/qml/GlobalSettings.qml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ Dialog {
1212
id: root
1313
title: qsTranslate("RDM","Settings")
1414

15-
contentItem: Item {
15+
contentItem: Rectangle {
1616
id: dialogRoot
1717
implicitWidth: 800
18-
implicitHeight: PlatformUtils.isOSX()? 680 : Math.min(750, Screen.desktopAvailableHeight - 100)
18+
implicitHeight: PlatformUtils.isOSX()? 680 : approot.height
19+
20+
border.color: "#eeeeee"
21+
border.width: 1
1922

2023
Item {
2124
anchors.fill: parent
@@ -27,8 +30,9 @@ Dialog {
2730
height: parent.height
2831

2932
ColumnLayout {
33+
id: innerLayout
3034
width: globalSettingsScrollView.width - 20
31-
height: children.height
35+
height: (dialogRoot.height - 50 > implicitHeight) ? dialogRoot.height - 50 : implicitHeight
3236

3337
SettingsGroupTitle {
3438
text: qsTranslate("RDM","General")
@@ -146,6 +150,7 @@ Dialog {
146150

147151
TableView {
148152
Layout.fillWidth: true
153+
Layout.fillHeight: true
149154
verticalScrollBarPolicy: Qt.ScrollBarAlwaysOn
150155

151156
TableViewColumn {

0 commit comments

Comments
 (0)