Page 1 of 1

PopupMenu window size when children are not visible - bug?

Posted: Mon Jun 19, 2006 11:07
by Van
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.