Popup of wxOwnerDrawnComboBox not correctly positioned if the control is child of a toolbar (wxGTK)
|Reported by:||alexandrub||Owned by:||pcor|
To reproduce, change the toolbar sample to use wxOwnerDrawnCombBox instead of wxComboBox (just replace the keywords) and link with -lwx_gtk2u_adv-2.9.
It is possibly similar to the issue related in Ticket #3482 and fixed in lower releases.
The problem can be traced to wxComboCtrlBase::ShowPopup() -> wxWindowGtk::DoGetPosition() which returns correctly only if the parent of the widget is a WX_PIZZA, otherwise returns (0, 0). Copying the solution from 2.8 makes it work but with a hack: in our code I define initial position to (-2, -2) because wxDefaultPosition (-1, -1) gets reset to (0, 0) somewhere in-between.
Any pointers to the clean solution or why this didn't make it to 2.9? When this is solved, a wxOwnerDrawnCombBox should be added to the sample as a regression test.