-
Notifications
You must be signed in to change notification settings - Fork 585
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
Dynamic height widget ? #196
Comments
The You're speaking of "window" - are you referring to Nuklear windows or operating system windows? The above paragraph assumes the latter in which case you can just read the size of the os window in each main event loop iteration. For the former case, just read |
Thanks for your reply. |
For such a chat application I'd strongly recommend using a "container" widget (with vertical scrollbar) with a fixed number of items inside - see https://developers.google.com/web/updates/2016/07/infinite-scroller (the principle applies not just to web technologies). |
I want to have |
I wouldn't say it's the only solution to your "chat" problem. IIRC there were people using Nuklear with very long vertical lists (tens of thousands of items) - so you might get an inspiration also there. |
Some more vertical layout options would be nice, though. Of course you can get the content region and position stuff manually, but the same can be said for horizontal layout and nuklear does do horizontal layout for you. |
@wziard agreed. So far there was noone who would like to dive into the fierce depths of more general layouting (everything begins with vertical layouting...). PRs much welcome! |
:-D . Ok I think I'd aim for something a bit more simple at first. Just divvying up the vertical available space between the rows I'll see if I understand the layouting code in Nuklear. |
Hello.
How can i create a widget that fills window by height ?
There's _dynamic layout functions, but they are only for width, not height.
The text was updated successfully, but these errors were encountered: