unable to position text and rectangle #809
Unanswered
roeeNavonPrivate
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi, I'm currently on vacation until mid-march, sorry. Will try to help once I'm back. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i am trying to write a ui component that is a text inside a rectangle, such as the text will fit exactly the rectangle (so i whould be able to use a java class to add padding to the text) so far it is the results:
![image](https://private-user-images.githubusercontent.com/107650855/306414998-e6769c35-211b-4d9d-b8c4-043ee2042f57.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4NDE0MTQsIm5iZiI6MTcyMTg0MTExNCwicGF0aCI6Ii8xMDc2NTA4NTUvMzA2NDE0OTk4LWU2NzY5YzM1LTIxMWItNGQ5ZC1iOGM0LTA0M2VlMjA0MmY1Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNFQxNzExNTRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xNjA2OGMzZDljOGQ4Njg0NTBjMzBjNTZlNDY5M2QxNGIxNjllNzRhOGMzZTQyYjdmZjE2YzUzNTMzYjNhZGMxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.0Bt1OGVoVv0U1FDeMpTyVyBhvoHNdkqBWWVyVr4pJ5g)
there are 2 problems:
there is a gap around the text (that i want to get rid of)
the gap changes base on font size
here is the code
Beta Was this translation helpful? Give feedback.
All reactions