Fix keyboard positioning

This commit is contained in:
reionwong 2021-10-27 20:02:58 +08:00
parent e4a3967382
commit 7d36d988b9
2 changed files with 6 additions and 0 deletions

View file

@ -75,6 +75,8 @@ Window {
} }
RowLayout { RowLayout {
spacing: FishUI.Units.largeSpacing
Button { Button {
text: qsTr("Cancel") text: qsTr("Cancel")
Layout.fillWidth: true Layout.fillWidth: true

View file

@ -70,6 +70,10 @@ GridView {
positioner.reset() positioner.reset()
} }
onCountChanged: {
positioner.reset()
}
function effectiveNavDirection(flow, layoutDirection, direction) { function effectiveNavDirection(flow, layoutDirection, direction) {
if (direction === Qt.LeftArrow) { if (direction === Qt.LeftArrow) {
if (flow === GridView.FlowLeftToRight) { if (flow === GridView.FlowLeftToRight) {