Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Some longer texts extend outside of the text bubble #110

Closed
dieharddan opened this issue Jun 6, 2019 · 12 comments
Closed

Some longer texts extend outside of the text bubble #110

dieharddan opened this issue Jun 6, 2019 · 12 comments

Comments

@dieharddan
Copy link

Hello, sometimes when receiving texts, the text will extend outside the text bubble and will become partly unreadable. I am using a OPO device

text

@krille-chan
Copy link
Collaborator

Thank you for the report. This issue mostly occurs in convergence mode and is affecting other apps like fluffychat or telegram too sometimes. We need to find a better way to calculate the label width. Maybe a new toolkit can help with this task @bhdouglass ?

@bhdouglass
Copy link
Member

Looks like a word wrapping issue, unless I'm missing something @ChristianPauly ?

@Flohack74
Copy link
Member

You need a hidden rendering, then measuring, then text box sizing function like in TELEports or the old Telegram app...

@krille-chan
Copy link
Collaborator

krille-chan commented Jun 8, 2019

You need a hidden rendering, then measuring, then text box sizing function like in TELEports or the old Telegram app...

Okay, so here we have the width calculation in messages app: https://github.com/ubports/messaging-app/blob/xenial/src/qml/MessageBubble.qml#L114-L119

And here in (old) Telegram using an invisible Label with the same text for width calculation: https://github.com/ubports/telegram-app/blob/master/telegram/app/qml/components/MessagesListItem.qml#L278
Looks a little bit hacky but seems to work better. We should adapt the Telegram solution to fix this ;)

@bhdouglass
Copy link
Member

Would TextMetrics help here? https://doc.qt.io/qt-5/qml-qtquick-textmetrics.html

@Flohack74
Copy link
Member

Not to forget that in Telegram we need support for text formatting, while messaging app just has plain text, maybe thats the difference.

@Flohack74
Copy link
Member

Got this now also with an MMS:
grafik

@ntorquet
Copy link

My wife and I have the same issue with mms. She had an OPO and me a bq E5-HD Ubuntu Edition.
Another very strange mms behavior, but this time only on my wife's OPO: sometime, she received new sms mixed with old sms. That is crazy! But probably not the same issue?

@UniversalSuperBox
Copy link
Member

Closed by #130

@gbdomubpkm
Copy link

For me, Seen today on BQ E5 HD dev v 488, the bug is back :
SMS out of box

@lduboeuf
Copy link
Collaborator

lduboeuf commented Mar 27, 2020

can you please open a new ticket, but i can't confirm on N5 with today image on devel

@gbdomubpkm
Copy link

OK.
Just seen tonight.
But anyway, it's a bug that's always happened randomly to me.

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

No branches or pull requests

8 participants