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
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.
The text was updated successfully, but these errors were encountered:
Since we are getting the bounds of all widgets in their render functions, we might be able to get a sum in console_render(). Not sure that would consider padding and stuff though.
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.
The text was updated successfully, but these errors were encountered: