SettingsPanel: finaly fixed the conflict between scrollview and textinput!
This commit is contained in:
parent
3140039ccb
commit
f9a48becce
1 changed files with 22 additions and 15 deletions
|
|
@ -477,10 +477,16 @@ NPanel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceComponent: ScrollView {
|
sourceComponent: Flickable {
|
||||||
|
// Using a Flickable here with a pressDelay to fix conflict between
|
||||||
|
// ScrollView and NTextInput. This fix the weird text selection issue.
|
||||||
|
id: flickable
|
||||||
|
anchors.fill: parent
|
||||||
|
pressDelay: 200
|
||||||
|
|
||||||
|
ScrollView {
|
||||||
id: scrollView
|
id: scrollView
|
||||||
Layout.fillWidth: true
|
anchors.fill: parent
|
||||||
Layout.fillHeight: true
|
|
||||||
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
||||||
ScrollBar.vertical.policy: ScrollBar.AsNeeded
|
ScrollBar.vertical.policy: ScrollBar.AsNeeded
|
||||||
padding: Style.marginL * scaling
|
padding: Style.marginL * scaling
|
||||||
|
|
@ -504,3 +510,4 @@ NPanel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue