prevent overscroll in roomlist and communities list

This commit is contained in:
Nicolas Werner 2023-10-23 02:05:08 +02:00
parent e3ad60911d
commit 491809e853
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 12 additions and 10 deletions

View file

@ -5,11 +5,11 @@
import "./components" import "./components"
import "./dialogs" import "./dialogs"
import Qt.labs.platform 1.1 as Platform import Qt.labs.platform 1.1 as Platform
import QtQml 2.12 import QtQml
import QtQuick 2.12 import QtQuick
import QtQuick.Controls 2.5 import QtQuick.Controls
import QtQuick.Layouts 1.3 import QtQuick.Layouts
import im.nheko 1.0 import im.nheko
Page { Page {
id: communitySidebar id: communitySidebar
@ -38,6 +38,7 @@ Page {
anchors.right: parent.right anchors.right: parent.right
height: parent.height height: parent.height
model: Communities.filtered() model: Communities.filtered()
boundsBehavior: Flickable.StopAtBounds
ScrollBar.vertical: ScrollBar { ScrollBar.vertical: ScrollBar {
id: scrollbar id: scrollbar

View file

@ -6,11 +6,11 @@ import "./components"
import "./dialogs" import "./dialogs"
import "./ui" import "./ui"
import Qt.labs.platform 1.1 as Platform import Qt.labs.platform 1.1 as Platform
import QtQml 2.12 import QtQml
import QtQuick 2.15 import QtQuick
import QtQuick.Controls 2.15 import QtQuick.Controls
import QtQuick.Layouts 1.3 import QtQuick.Layouts
import im.nheko 1.0 import im.nheko
Page { Page {
//leftPadding: Nheko.paddingSmall //leftPadding: Nheko.paddingSmall
@ -405,6 +405,7 @@ Page {
anchors.right: parent.right anchors.right: parent.right
height: parent.height height: parent.height
model: Rooms model: Rooms
boundsBehavior: Flickable.StopAtBounds
//reuseItems: true //reuseItems: true
ScrollBar.vertical: ScrollBar { ScrollBar.vertical: ScrollBar {