Measure wxBitmapComboBox height correctly if it has images.
This fixes a regression introduced in r77548 (see #14279): wxBitmapComboBox must be higher than a normal wxComboBox if it has big enough bitmaps. Closes #16690. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2d3ef92acc
commit
7e869a5d4d
@ -449,9 +449,9 @@ bool wxBitmapComboBox::MSWOnMeasure(WXMEASUREITEMSTRUCT *item)
|
||||
LPMEASUREITEMSTRUCT lpMeasureItem = (LPMEASUREITEMSTRUCT) item;
|
||||
int pos = lpMeasureItem->itemID;
|
||||
|
||||
// Measure item height if item list is not empty,
|
||||
// Measure edit field height if item list is not empty,
|
||||
// otherwise leave default system value.
|
||||
if ( pos >= 0 )
|
||||
if ( m_usedImgSize.y >= 0 || pos >= 0 )
|
||||
{
|
||||
lpMeasureItem->itemHeight = wxBitmapComboBoxBase::MeasureItem(pos);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user