-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
Align text in InputText to the right when not active #4391
Comments
Reopening as in fact this is different from #1442: if the aim is to e.g. see the significant portion of a filename then it doesn't necessarily mean we want to right-align the text at all time (although that if available would be a good workaround, but look odd when the filename is short). (Also see WIP stuff such as #5791 (comment)) |
This is now supported with |
After searching a lot i still do not see a way to align the text in an inputtext to the right. this would be useful e.g. in a file viewer when the text does not fit then the end of the text contains more useful information than the beginning, so that is the one which should be visible.
is this possible somehow? if not, then please consider adding it via a flag or some other way.
while trying to find workarounds i thought about modifying (truncating) the text when editing is finished and then putting back the 'long' text and positioning at the right place the cursor in the long text when editing is started. for these i'd need some callbacks when editing is started/finished but i could not find such. isItemActivated and isItemDeactivatedAfterEdit are triggered at the right time but from these i don't know how to reach the text buffer of the inputtext (and positioning the cursor), is this possible? if not, i think some way to change the text buffer when editing is started/finished (e.g. using a callback) would be a useful addition in general, not just for my usecase.
The text was updated successfully, but these errors were encountered: