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:
Nethius 2023-09-18 10:47:58 +05:00 committed by GitHub
commit fd9f9ee178
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,9 @@ Rectangle {
radius: 16
FlickableType {
id: fl
interactive: false
anchors.top: parent.top
anchors.bottom: parent.bottom
contentHeight: textArea.implicitHeight
@ -41,12 +44,23 @@ Rectangle {
placeholderText: root.placeholderText
text: root.text
onCursorVisibleChanged: {
if (textArea.cursorVisible) {
fl.interactive = true
} else {
fl.interactive = false
}
}
wrapMode: Text.Wrap
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.RightButton
onClicked: contextMenu.open()
onClicked: {
fl.interactive = true
contextMenu.open()
}
}
ContextMenuType {