You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In there, I want to display N strings (as labels) inside the window. In this case, I am manually calculating the window height based on the number of items in my array + the base window size (which I don't know if it's really 45 by the way).
Is there any way the window can resize itself automatically based on the number of items?
Also, side note: With the code I sent, if I render N items, and then I remove 1 (e.g. render 5 labels and then 4), the window size remains as it was when I rendered 5.
The text was updated successfully, but these errors were encountered:
With immediate mode UIs you simply recalculate (and then set before next frame) the new geometry (e.g. window size) after you decided to change the number of items.
I am sure this has been asked before, but I can't find anything.
Let's say I have this code:
In there, I want to display N strings (as labels) inside the window. In this case, I am manually calculating the window height based on the number of items in my array + the base window size (which I don't know if it's really 45 by the way).
Is there any way the window can resize itself automatically based on the number of items?
Also, side note: With the code I sent, if I render N items, and then I remove 1 (e.g. render 5 labels and then 4), the window size remains as it was when I rendered 5.
The text was updated successfully, but these errors were encountered: