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

Run performLayout() again when the combobox gets a new set of items #410

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ermarch
Copy link
Contributor

@ermarch ermarch commented May 31, 2019

If the item-list of a combobox changes (multiple times) at run-time it is required to re-calculate the layout again otherwise the popup widget will be stale or empty. Unfortunately there is no way to request performLayout for a single widget so they will all be recalculated.

@ermarch ermarch force-pushed the combobox_layout branch from c9f3838 to 43111b1 Compare May 31, 2019 12:50
@biglizards
Copy link

I haven't tried it myself, but couldn't you do somewidget->performLayout(screen->nvgContext()), since all widgets have a performLayout method?

@ermarch
Copy link
Contributor Author

ermarch commented Jun 19, 2019 via email

@ermarch
Copy link
Contributor Author

ermarch commented Jun 19, 2019 via email

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

Successfully merging this pull request may close these issues.

2 participants