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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MDg0MDgsIm5iZiI6MTczOTkwODEwOCwicGF0aCI6Ii8xMDc2NTA4NTUvMzA2NDE0OTk4LWU2NzY5YzM1LTIxMWItNGQ5ZC1iOGM0LTA0M2VlMjA0MmY1Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOFQxOTQ4MjhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wNTZjNjNlNTQwNGZjYTkzODA4M2NlZDRjOTk5NTlmNTY4MjBmMjA1N2NlMmY4YTYwZjFlN2RjOTc5YjNiNmU0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.sP_lWeldPhApIb3xevFPaljGqk3pduUBg19QVjB_Xuk)
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