PopupMenu window size when children are not visible - bug?

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
Van
Just can't stay away
Just can't stay away
Posts: 225
Joined: Fri Jan 21, 2005 20:29
Contact:

PopupMenu window size when children are not visible - bug?

Postby Van » Mon Jun 19, 2006 11:07

I am using the same popup menu window for displaying several levels of options. I have about 20+ children windows (CEGUI::ItemEntry) to the PopupMenu and then use the CEGUI::ItemEntry::setVisible() to decide what options should be visible for a each display mode of the PopupMenu.

I think the bug is that the PopupMenu height is sized based on the number of children, not the number of visible children. So, the PopupMenu looks awkward - there are alot of blank spaces being shown and the window is larger than it should be.

I think the problem is in the getContentSize() function. It should probably test to see if the ItemEntry is visible or not.

I think this is a bug, but I'm not sure.

Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 8 guests