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

View file

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