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,23 +477,30 @@ NPanel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceComponent: ScrollView {
|
sourceComponent: Flickable {
|
||||||
id: scrollView
|
// Using a Flickable here with a pressDelay to fix conflict between
|
||||||
Layout.fillWidth: true
|
// ScrollView and NTextInput. This fix the weird text selection issue.
|
||||||
Layout.fillHeight: true
|
id: flickable
|
||||||
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
anchors.fill: parent
|
||||||
ScrollBar.vertical.policy: ScrollBar.AsNeeded
|
pressDelay: 200
|
||||||
padding: Style.marginL * scaling
|
|
||||||
clip: true
|
|
||||||
|
|
||||||
Component.onCompleted: {
|
ScrollView {
|
||||||
root.activeScrollView = scrollView
|
id: scrollView
|
||||||
}
|
anchors.fill: parent
|
||||||
|
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
||||||
|
ScrollBar.vertical.policy: ScrollBar.AsNeeded
|
||||||
|
padding: Style.marginL * scaling
|
||||||
|
clip: true
|
||||||
|
|
||||||
Loader {
|
Component.onCompleted: {
|
||||||
active: true
|
root.activeScrollView = scrollView
|
||||||
sourceComponent: root.tabsModel[index].source
|
}
|
||||||
width: scrollView.availableWidth
|
|
||||||
|
Loader {
|
||||||
|
active: true
|
||||||
|
sourceComponent: root.tabsModel[index].source
|
||||||
|
width: scrollView.availableWidth
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue