Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
1472adcb
Commit
1472adcb
authored
Jun 05, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ui/modules/Common/View/ScrollableListView): remove smart in `positionViewAtEnd`
parent
00f61f51
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
44 deletions
+3
-44
resources.qrc
linphone-desktop/resources.qrc
+0
-1
ScrollableListView.js
...hone-desktop/ui/modules/Common/View/ScrollableListView.js
+0
-13
ScrollableListView.qml
...one-desktop/ui/modules/Common/View/ScrollableListView.qml
+3
-30
No files found.
linphone-desktop/resources.qrc
View file @
1472adcb
...
...
@@ -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>
...
...
linphone-desktop/ui/modules/Common/View/ScrollableListView.js
deleted
100644 → 0
View file @
00f61f51
// =============================================================================
// `ScrollableListView.qml` Logic.
// =============================================================================
function
positionViewAtEnd
()
{
view
.
interactive
=
false
scrollAnimation
.
start
()
view
.
interactive
=
true
}
function
getYEnd
()
{
return
view
.
originY
+
view
.
contentHeight
-
view
.
height
}
linphone-desktop/ui/modules/Common/View/ScrollableListView.qml
View file @
1472adcb
...
...
@@ -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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment