Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions electrum/gui/qml/components/ExceptionDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,21 @@ ElDialog
Layout.fillWidth: true
text: qsTr('Please briefly describe what led to the error (optional):')
}
TextArea {
id: user_text
Layout.fillWidth: true
Flickable {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that there is controls/ElTextArea that aims to solve the scrolling issue as well (albeit still a bit glitchy in its current form). It is used in e.g. SignVerifyMessageDialog.qml

width: parent.width
Copy link
Copy Markdown
Member

@accumulator accumulator Jul 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid binding width (or height, x, y) in direct children of Layout. Direct children should as a rule of thumb always use Layout attached properties, e.g. Layout.fillWidth: true, or Layout.preferredWidth: 100, as Layout takes control of these properties in its children.

Layout.fillHeight: true
background: Rectangle {
color: Qt.darker(Material.background, 1.25)
contentHeight: user_text.height
interactive: height < contentHeight
clip: true

TextArea {
id: user_text
width: parent.width
height: Math.max(implicitHeight, 100)
wrapMode: TextInput.WordWrap
background: Rectangle {
color: Qt.darker(Material.background, 1.25)
}
}
}
Label {
Expand Down