Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Function to retrieve bounds of window contents, pre-clipping. #694

Open
StrikerMan780 opened this issue Sep 20, 2024 · 0 comments

Comments

@StrikerMan780
Copy link

nk_window_get_content_region almost does what I need, but it unfortunately doesn't count any overspill if the content is larger than the window, meaning it caps out at the window size.

I need a version of this function that would allow me to get the real bounds of the content. It doesn't appear that Nuklear currently has a function that does this, and I'm unable to accurately calculate the width/height I need to perfectly resize the window to fit the inner contents without need of a scrollbar.

I'm trying to do this, essentially (this is buggy/broken code, just used to make an approximate mockup of what I'd use it for): https://shadowmavericks.com/files/ShareX/tfury_2024-09-20_16-25-29.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant