linphone-desktop/linphone-app/ui/modules/Common/View/ScrollableListView.qml
Julien Wadel d7dfe986c0 - Forward messages to a contact, a sip address or directly to a timeline.
- Fix CI on Qt5_DIR.
- Hide reply message preview after sending message.
- Fix binding loop on sub-messages.
- Reduce spacing size in message.
2021-11-10 01:50:28 +01:00

33 lines
1 KiB
QML

import QtQuick 2.12 //synchronousDrag
import QtQuick.Controls 2.2
import Common 1.0
// =============================================================================
ListView {
id: view
// ---------------------------------------------------------------------------
ScrollBar.vertical: ForceScrollBar {
id: vScrollBar
onPressedChanged: pressed ? view.movementStarted() : view.movementEnded()
// ScrollBar.AsNeeded doesn't work. Do it ourself.
policy: (view.contentHeight > view.height ? ScrollBar.AlwaysOn : ScrollBar.AlwaysOff)
}
// ---------------------------------------------------------------------------
boundsBehavior: Flickable.StopAtBounds
clip: true
contentWidth: width - (vScrollBar.visible?vScrollBar.width:0)
spacing: 0
synchronousDrag: true
cacheBuffer: height
// ---------------------------------------------------------------------------
// TODO: Find a solution at this bug =>
// https://bugreports.qt.io/browse/QTBUG-31573
// https://bugreports.qt.io/browse/QTBUG-49989
}