HPage: set shortcuts.flickTarget on init

This makes any HPage by default keyboard-scrollable, notably
the new AddChat pages.
This commit is contained in:
miruka 2019-11-10 08:44:36 -04:00
parent 35a3ae2558
commit f552a16d51
2 changed files with 2 additions and 1 deletions

View File

@ -79,6 +79,8 @@ SwipeView {
contentWidth: parent.width contentWidth: parent.width
contentHeight: contentColumn.childrenRect.height contentHeight: contentColumn.childrenRect.height
Component.onCompleted: shortcuts.flickTarget = this
HColumnLayout { HColumnLayout {
id: contentColumn id: contentColumn
width: innerFlickable.width width: innerFlickable.width

View File

@ -6,7 +6,6 @@ import "../../utils.js" as Utils
HPage { HPage {
id: editAccount id: editAccount
Component.onCompleted: shortcuts.flickTarget = flickable
property int avatarPreferredSize: 256 property int avatarPreferredSize: 256