-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Text entity display breaks if content overflows entity dimensions #583
Comments
Not really a bug, but more an enhancement request. (Since this is the current behavior since day 0) I agree, it always been a bit annoying. |
I understand it may have been historically broken, but I'd still call that broken and thus a bug. Semantics aside, it's a very jarring behavior. I only discovered it through experimentation, initially I thought the text entity was just non-functional as I started by entering text that was too large for the dimensions. |
It's precisely what I meant by "a bit annoying." ;-) |
The original solution for this was to use https://apidocs.overte.org/Entities.html#.textSize |
The other behavior that is annoying is auto-trim. If we set text " Abc " It is automatically transformed into "Abc". But not sure if it is a good idea to change any of that. |
You might need \n to force those lines. |
If the text content of a text entity is longer than the text entity the text just fails to render, instead of overflowing and clipping.
Example:
![image](https://private-user-images.githubusercontent.com/3112763/261864320-5973693f-0713-4436-b93d-a36b77cfc1c6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyNTEzNDcsIm5iZiI6MTcyMzI1MTA0NywicGF0aCI6Ii8zMTEyNzYzLzI2MTg2NDMyMC01OTczNjkzZi0wNzEzLTQ0MzYtYjkzZC1hMzZiNzdjZmMxYzYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTBUMDA1MDQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9M2U2MzllM2Q5ZTU1MjBlYzQxZTIzYjA0NWI3YjkzNTY3ZGVhNmZkZDVlMzU1MWU0MzFmYWUzNTBjODhjMDBhMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.nbVNWOU1CF_Hx4-JC-DEweDleuLh1_WTFtl6E9iNTLA)
Add another character (content should be "aaaaaa"):
![image](https://private-user-images.githubusercontent.com/3112763/261864369-698d7e4c-83c3-4e6d-8913-0fe7d890e0f4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyNTEzNDcsIm5iZiI6MTcyMzI1MTA0NywicGF0aCI6Ii8zMTEyNzYzLzI2MTg2NDM2OS02OThkN2U0Yy04M2MzLTRlNmQtODkxMy0wZmU3ZDg5MGUwZjQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTBUMDA1MDQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MmE3ZGE2MDEwMDc5MzdmZjExMjIwMGFjZDgyZTVjYWUyZDEyMmQ3ZjFiZGNhMDYyMmU1MjczZTIzZjRjYmRiOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.rIBRi2UjGXo8WF-gHqChe9U0KizDqoJRl0ZKBoZkyeU)
Exported test entity:
The text was updated successfully, but these errors were encountered: