forked from cwtch.im/ui
Prevent Crash on Resize
This commit is contained in:
parent
1200714005
commit
676ca69481
|
@ -12,13 +12,11 @@ import "../utils.js" as Utils
|
|||
ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
|
||||
|
||||
Flickable { // THE MESSAGE LIST ITSELF
|
||||
id: sv
|
||||
clip: true
|
||||
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
||||
Layout.fillHeight: true
|
||||
Layout.maximumWidth: parent.width
|
||||
Layout.fillWidth: true
|
||||
contentWidth: colMessages.width
|
||||
contentHeight: colMessages.height
|
||||
|
@ -104,9 +102,6 @@ ColumnLayout {
|
|||
|
||||
Flickable {
|
||||
id: flkMessage
|
||||
anchors.fill: parent//this does nothing! bug in qt
|
||||
Layout.minimumWidth: parent.width
|
||||
Layout.maximumWidth: parent.width
|
||||
Layout.minimumHeight: rectMessage.height
|
||||
Layout.maximumHeight: rectMessage.height
|
||||
contentWidth: txtMessage.width
|
||||
|
@ -125,8 +120,6 @@ ColumnLayout {
|
|||
padding: 6
|
||||
wrapMode: TextEdit.Wrap
|
||||
textFormat: Text.RichText
|
||||
width: rectMessage.width
|
||||
//height: parent.height
|
||||
|
||||
property bool skipOneUpdate: false
|
||||
|
||||
|
|
Loading…
Reference in New Issue