Community
Participate
Working Groups
No mechanism for retrieving the height of a Menu or a MenuItem. No way to get the bounds of a menu either so there is no way to work around this on both Linux and Windows. They behave differently as far as when setting location of a Menu on the OS so can work around it on 1 OS but not the other, depending on if the Menu is POP_UP or PULL_DOWN. Our product UI relys heavily on locating a Menu so this is a critical/blocking situation for us.
Will investigate determining a menu's size on the various platforms.
I've done some looking at this today. The platforms seem to support it (haven't checked mac yet), though they each have quirks w.r.t. giving the correct answer, particularly for x and y location (width and height generally work better). I'll bring this up with others next week once they return from eclipseCon.
Fixed > 0220. There was more resistance to this than I expected. Added new api Menu.getSize() which returns a Point representing the size of a visible popup, pulldown, or bar.
Reopening. api has been removed because in order for it to work it requires that a menu be visible, which defeats the main use case for this. Still looking into this.
*** This bug has been marked as a duplicate of 38436 ***