Merge pull request #320 from amnezia-vpn/bugfix/scroll_stuck_on_fl_textarea
fixed scroll stuck on textarea in page OpenVpnSettings
This commit is contained in:
commit
fd9f9ee178
1 changed files with 15 additions and 1 deletions
|
@ -16,6 +16,9 @@ Rectangle {
|
||||||
radius: 16
|
radius: 16
|
||||||
|
|
||||||
FlickableType {
|
FlickableType {
|
||||||
|
id: fl
|
||||||
|
interactive: false
|
||||||
|
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
contentHeight: textArea.implicitHeight
|
contentHeight: textArea.implicitHeight
|
||||||
|
@ -41,12 +44,23 @@ Rectangle {
|
||||||
placeholderText: root.placeholderText
|
placeholderText: root.placeholderText
|
||||||
text: root.text
|
text: root.text
|
||||||
|
|
||||||
|
onCursorVisibleChanged: {
|
||||||
|
if (textArea.cursorVisible) {
|
||||||
|
fl.interactive = true
|
||||||
|
} else {
|
||||||
|
fl.interactive = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.RightButton
|
||||||
onClicked: contextMenu.open()
|
onClicked: {
|
||||||
|
fl.interactive = true
|
||||||
|
contextMenu.open()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ContextMenuType {
|
ContextMenuType {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue