fix: chatLayout getting squished on first login

This commit is contained in:
Jonathan Rainville 2020-12-21 12:59:02 -05:00 committed by Iuri Matias
parent 29a9ca4ef5
commit 7ddb93266b
1 changed files with 4 additions and 8 deletions

View File

@ -70,25 +70,21 @@ SplitView {
Loader { Loader {
id: contactColumnLoader id: contactColumnLoader
SplitView.preferredWidth: Style.current.leftTabPrefferedSize
SplitView.minimumWidth: Style.current.leftTabMinimumWidth
SplitView.maximumWidth: Style.current.leftTabMaximumWidth
sourceComponent: chatsModel.activeCommunity.active ? communtiyColumnComponent : contactsColumnComponent sourceComponent: chatsModel.activeCommunity.active ? communtiyColumnComponent : contactsColumnComponent
} }
Component { Component {
id: contactsColumnComponent id: contactsColumnComponent
ContactsColumn { ContactsColumn {
SplitView.preferredWidth: Style.current.leftTabPrefferedSize
SplitView.minimumWidth: Style.current.leftTabMinimumWidth
SplitView.maximumWidth: Style.current.leftTabMaximumWidth
} }
} }
Component { Component {
id: communtiyColumnComponent id: communtiyColumnComponent
CommunityColumn { CommunityColumn {}
SplitView.preferredWidth: Style.current.leftTabPrefferedSize
SplitView.minimumWidth: Style.current.leftTabMinimumWidth
SplitView.maximumWidth: Style.current.leftTabMaximumWidth
}
} }
ChatColumn { ChatColumn {