fix: chat identifier position

This commit is contained in:
Richard Ramos 2020-06-08 18:34:41 -04:00 committed by RichΛrd
parent 61606a872e
commit 40a523851d
2 changed files with 4 additions and 5 deletions

View File

@ -20,7 +20,7 @@ ScrollView {
Layout.fillWidth: true
Layout.fillHeight: true
ScrollBar.vertical.policy: ScrollBar.AlwaysOn
ScrollBar.vertical.policy: chatLogView.contentHeight > chatLogView.height ? ScrollBar.AlwaysOn : ScrollBar.AlwaysOff
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ListView {

View File

@ -24,7 +24,7 @@ Item {
height: {
switch(contentType){
case Constants.chatIdentifier:
return 196;
return parent.parent.height
case Constants.stickerType:
return stickerId.height + 50
default:
@ -40,8 +40,7 @@ Item {
id: channelIdentifier
visible: authorCurrentMsg == ""
anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 20
anchors.top: parent.top
anchors.verticalCenter: parent.verticalCenter
Rectangle {
id: circleId