Search Unity

Bug TextInput does not recompute it's layout properly when zoomed

Discussion in 'UI Toolkit' started by khan-amil, Jun 30, 2022.

  1. khan-amil

    khan-amil

    Joined:
    Mar 29, 2012
    Posts:
    206
    Ok so it might be more related to the Graph API, and it being reworked I guess this issue will be alleviated once it's done.

    But I think someone here might point me to a workaround?

    So I have a Graph with some nodes where you can edit the text, and at some zoom levels, we get some text cut :
    Capture d’écran 2022-06-29 à 09.33.44.png Capture d’écran 2022-06-29 à 09.33.51.png

    Delving into it a bit, the TextInput contents just got a new line due to the layout at this scale/font size. I can display it if I set overflow to "visible", where the text then goes out of its box.

    Question is, how can I tell this text box to update it's layout? My guess is during the zoom procedure, however the graph does it, it doesn't update layout on some components, or not in the correct order?