Skip to content
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

DetailedList widget will attempt to render multiple lines of title/subtitle text #2343

Open
freakboy3742 opened this issue Jan 15, 2024 · 0 comments
Labels
android The issue relates to Android mobile support. bug A crash or error in behavior.

Comments

@freakboy3742
Copy link
Member

freakboy3742 commented Jan 15, 2024

Describe the bug

If you define a DetailedList widget whose title and/or subtitle includes newlines, some platforms will render multiple lines, and some will not.

Steps to reproduce

Add a DetailedList with data items that include newlines in the title and subtitle.

Expected behavior

The rendering should be consistent across all platforms, displaying only the content up to the first newline.

This should be implemented at time of rendering, splitting the title/subtitle text at the first newline, and only rendering the first line.

Screenshots

Via beeware/briefcase#1600, the rendering on Android:

7

Environment

  • Operating System: Android; possibly others.
  • Python version: All
  • Software versions:
    • Toga: 0.4.1

Logs

No response

Additional context

No response

@freakboy3742 freakboy3742 added bug A crash or error in behavior. android The issue relates to Android mobile support. labels Jan 15, 2024
@freakboy3742 freakboy3742 transferred this issue from beeware/briefcase Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android The issue relates to Android mobile support. bug A crash or error in behavior.
Projects
None yet
Development

No branches or pull requests

1 participant