TotalCross / totalcross

TotalCross is a Software Development Kit that helps cross platform application development. Currently supported platforms are: Windows, Wince, Android, iOS, Linux and Linux ARM for embedded systems.
https://www.totalcross.com
GNU Lesser General Public License v2.1
220 stars 40 forks source link

Component Radio is shorting text #178

Closed VicMisael closed 3 years ago

VicMisael commented 4 years ago

Issue Title

Component Radio is shorting Text

Describe the bug

Radio is wrongly shorting its text when setting preferred width and running it on Android.

To Reproduce

Open the TCSample application, and go to UI>Camera It's possible to see the bug there

Expected behavior

The text should be seen completely

Screenshots or videos

image

Devices:

Please complete the following information:

nmarquesin commented 3 years ago

This seams to be a feature, not a bug. We can improve our documentation to clarify how the feature works. @flsobral shoudl we edit on learn.totalcross.com, on Javadoc or both?

teras commented 3 years ago

Indeed this is really a feature. When the content does not fit in the proposed size of the Label widget, it needs to truncate it.

It can't be documented under javadoc since this appears in many widgets and it's a generic behavior. So, if we want to document it, maybe somewhere generic. But under my point of view, this is common knowledge. When something doesn't fit, needs to be truncated.

Maybe also inform the original reporter about this and just close the (non-)issue.