Not entirely sure if this is the most appropriate community for this but...
I'm looking for solutions to calculate positions for menu options when the amount of options vary and when each options might vary in size (due to text wrapping).
Our current code runs a for loop with two variables, one for the total number of options and one for how many should be on screen at once. Position was calculated as startYposition + 0.038 * number of options already on screen and that works fine for single-line entries but it goes to hell once you factor variable heights in.
I can know what height an option will be by rendering it but not putting it on screen right away.
Any ideas on how I might approach approach this?