fix(@desktop/chat): channel suggestions are not being displayed

This commit is contained in:
Andrei Smirnov 2021-08-23 07:33:06 +03:00 committed by Iuri Matias
parent 94f6041ec5
commit 20bf19983f
2 changed files with 3 additions and 4 deletions

View File

@ -79,8 +79,8 @@ Item {
Loader { Loader {
id: rectangleBubbleLoader id: rectangleBubbleLoader
active: !!invitedCommunity active: !!invitedCommunity
width: item.width width: item ? item.width : 0
height: item.height height: item ? item.height : 0
sourceComponent: Component { sourceComponent: Component {
Rectangle { Rectangle {

View File

@ -196,10 +196,9 @@ Item {
height: (contentHeight < (parent.height - contactRequests.height - Style.current.padding)) ? contentHeight : (parent.height - contactRequests.height - Style.current.padding) height: (contentHeight < (parent.height - contactRequests.height - Style.current.padding)) ? contentHeight : (parent.height - contactRequests.height - Style.current.padding)
anchors.top: contactRequests.bottom anchors.top: contactRequests.bottom
anchors.topMargin: Style.current.padding anchors.topMargin: Style.current.padding
contentHeight: channelList.height + 2 * Style.current.padding + emptyViewAndSuggestions.height + emptyViewAndSuggestions.anchors.topMargin contentHeight: channelList.childrenRect.height
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
leftPadding: Style.current.halfPadding leftPadding: Style.current.halfPadding
rightPadding: Style.current.halfPadding rightPadding: Style.current.halfPadding