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

Can't put combo box in a pop-up window #71

Closed
kamilzubair opened this issue Mar 6, 2020 · 2 comments
Closed

Can't put combo box in a pop-up window #71

kamilzubair opened this issue Mar 6, 2020 · 2 comments

Comments

@kamilzubair
Copy link

If I have a combo box in a pop-up window, it will crash when I click on the combo box. The assertion is in the line NK_ASSERT(!(panel->type & NK_PANEL_SET_POPUP)); in the function nk_nonblock_begin (line 16912).
Is this the desired behavior? what other components can't be used in a pop-up window ?

@dumblob
Copy link
Member

dumblob commented Mar 6, 2020

Is this the desired behavior?

I'd believe so as popups are a bit of a hack - there are some pending PRs to solve this, so you might take a look at them and try if they solve also your issue.

what other components can't be used in a pop-up window ?

Can't tell the full list, but this might help a bit:

$ grep -Er NK_ASSERT Nuklear/ | grep -E POPUP
Nuklear/nuklear.h:    NK_ASSERT(!(panel->type & NK_PANEL_SET_POPUP) && "popups are not allowed to have popups");
Nuklear/nuklear.h:    NK_ASSERT(!(panel->type & NK_PANEL_SET_POPUP));
Nuklear/nuklear.h:    NK_ASSERT(popup->layout->type & NK_PANEL_SET_POPUP);
Nuklear/nuklear.h:    NK_ASSERT(panel->type & NK_PANEL_SET_POPUP);
Nuklear/src/nuklear_contextual.c:    NK_ASSERT(panel->type & NK_PANEL_SET_POPUP);
Nuklear/src/nuklear_popup.c:    NK_ASSERT(!(panel->type & NK_PANEL_SET_POPUP) && "popups are not allowed to have popups");
Nuklear/src/nuklear_popup.c:    NK_ASSERT(!(panel->type & NK_PANEL_SET_POPUP));
Nuklear/src/nuklear_popup.c:    NK_ASSERT(popup->layout->type & NK_PANEL_SET_POPUP);

@kamilzubair
Copy link
Author

Thanks for the info, I finally just show the window as a normal window instead of a popup

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

2 participants