mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
clock-settings: dont double scroll
This commit is contained in:
@@ -283,7 +283,7 @@ ColumnLayout {
|
||||
|
||||
NDateTimeTokens {
|
||||
Layout.fillWidth: true
|
||||
height: 200
|
||||
Layout.preferredHeight: 300
|
||||
|
||||
// Connect to token clicked signal if NDateTimeTokens provides it
|
||||
onTokenClicked: token => root.insertToken(token)
|
||||
|
||||
@@ -21,11 +21,18 @@ Rectangle {
|
||||
anchors.margins: Style.marginS
|
||||
spacing: Style.marginS
|
||||
|
||||
NListView {
|
||||
id: tokensList
|
||||
Flickable {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
model: [
|
||||
contentHeight: tokensColumn.implicitHeight
|
||||
clip: true
|
||||
|
||||
Column {
|
||||
id: tokensColumn
|
||||
width: parent.width
|
||||
|
||||
Repeater {
|
||||
model: [
|
||||
// Common format combinations
|
||||
{
|
||||
"category": "Common",
|
||||
@@ -201,7 +208,7 @@ Rectangle {
|
||||
|
||||
delegate: Rectangle {
|
||||
id: tokenDelegate
|
||||
width: tokensList.width
|
||||
width: tokensColumn.width
|
||||
height: layout.implicitHeight + Style.marginS
|
||||
radius: Style.iRadiusS
|
||||
color: {
|
||||
@@ -353,6 +360,8 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user