mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix(launcher): use a binding for dynamic gridColumns - fix up/down navigation.
This commit is contained in:
@@ -134,7 +134,7 @@ Rectangle {
|
||||
readonly property int gridContentWidth: listPanelWidth - (2 * Style.marginXS)
|
||||
readonly property int gridCellSize: Math.floor((gridContentWidth - ((targetGridColumns - 1) * Style.marginS)) / targetGridColumns)
|
||||
|
||||
property int gridColumns: 5
|
||||
readonly property int gridColumns: targetGridColumns
|
||||
|
||||
// Check if current provider allows wrap navigation (default true)
|
||||
readonly property bool allowWrapNavigation: {
|
||||
@@ -1172,10 +1172,6 @@ Rectangle {
|
||||
// Completely disable GridView key handling
|
||||
Keys.enabled: false
|
||||
|
||||
Component.onCompleted: root.gridColumns = root.targetGridColumns
|
||||
onWidthChanged: root.gridColumns = root.targetGridColumns
|
||||
onModelChanged: {}
|
||||
|
||||
// Handle scrolling to show selected item when it changes
|
||||
Connections {
|
||||
target: root
|
||||
|
||||
Reference in New Issue
Block a user