Skip to content

qml: ExceptionDialog: put user_text inside Flickable #10051

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SomberNight
Copy link
Member

This tries to make the dialog better behave if the user types a lot of text.

note: I have not tested on Android.

@f321x
Copy link
Member

f321x commented Jul 21, 2025

note: I have not tested on Android.

tested on android, works as expected

id: user_text
Layout.fillWidth: true
Flickable {
width: parent.width
Copy link
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.

TextArea {
id: user_text
Layout.fillWidth: true
Flickable {
Copy link
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants