I'm trying to make my menu window expand and contract to fit the size of the contents, but I'm having extreme difficulty calculating this correctly to prevent scrollbars from showing.
Video to demonstrate what I'm trying to do. It sorta works here, but it's buggy and inconsistent because it doesn't factor in the height of individual elements, padding, etc. The moment I change font, or use mixed sized elements, it falls apart:
https://shadowmavericks.com/files/ShareX/tfury_2024-09-20_16-25-29.mp4
Hell, even just a nk_console member that contains the bounds of the content (including anything that might be clipped by the window's border) would be useful here.