Commit 1472adcb authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ui/modules/Common/View/ScrollableListView): remove smart in `positionViewAtEnd`

parent 00f61f51
......@@ -294,7 +294,6 @@
<file>ui/modules/Common/Styles/Window/WindowStyle.qml</file>
<file>ui/modules/Common/Tooltip/TooltipArea.qml</file>
<file>ui/modules/Common/Tooltip/Tooltip.qml</file>
<file>ui/modules/Common/View/ScrollableListView.js</file>
<file>ui/modules/Common/View/ScrollableListView.qml</file>
<file>ui/modules/Common/Window/ApplicationWindow.qml</file>
<file>ui/modules/Common/Window/VirtualWindow.qml</file>
......
// =============================================================================
// `ScrollableListView.qml` Logic.
// =============================================================================
function positionViewAtEnd () {
view.interactive = false
scrollAnimation.start()
view.interactive = true
}
function getYEnd () {
return view.originY + view.contentHeight - view.height
}
......@@ -3,8 +3,6 @@ import QtQuick.Controls 2.1
import Common 1.0
import 'ScrollableListView.js' as Logic
// =============================================================================
ListView {
......@@ -12,12 +10,6 @@ ListView {
// ---------------------------------------------------------------------------
function positionViewAtEnd () {
Logic.positionViewAtEnd()
}
// ---------------------------------------------------------------------------
ScrollBar.vertical: ForceScrollBar {
id: vScrollBar
......@@ -33,26 +25,7 @@ ListView {
// ---------------------------------------------------------------------------
// TODO: Find a solution at this bug => https://bugreports.qt.io/browse/QTBUG-31573
SequentialAnimation {
id: scrollAnimation
ScriptAction {
script: {
view.contentY = view.contentY
view.contentY = Logic.getYEnd()
view.contentY = view.contentY
}
}
PauseAnimation {
duration: 200
}
ScriptAction {
script: {
view.contentY = Logic.getYEnd()
}
}
}
// TODO: Find a solution at this bug =>
// https://bugreports.qt.io/browse/QTBUG-31573
// https://bugreports.qt.io/browse/QTBUG-49989
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment