Make sure Pane is completely visible including its shadow. Made ScrollBar background transparent

This commit is contained in:
Christian Muehlhaeuser 2017-08-31 01:55:36 +02:00
parent 7fd015ed9a
commit 87382ec1f8
No known key found for this signature in database
GPG key ID: BA4CF857DD4117E9
2 changed files with 8 additions and 3 deletions

View file

@ -4,12 +4,14 @@ import QtQuick.Controls.Material 2.1
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.0
RowLayout {
width: parent.width - messagePane.Material.elevation * 2
ColumnLayout {
x: messagePane.Material.elevation
width: parent.width - messagePane.Material.elevation * 2 - 12
Pane {
anchors.horizontalCenter: parent.horizontalCenter
id: messagePane
Material.elevation: 6
anchors.fill: parent
Layout.fillWidth: true
MessageView {
id: messageView

View file

@ -8,6 +8,9 @@ ListView {
ScrollBar.vertical: ScrollBar {
width: 8
background: Rectangle {
color: "transparent"
}
}
delegate: messagesDelegate