Fix empty wxBitmapComboBox height under wxMSW.
Make (initially) empty wxBitmapComboBox as high as a normal wxComboBox instead of making it visibly shorter. Closes #14279. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@77546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -614,6 +614,7 @@ wxMSW:
|
|||||||
- Fix font created using wxFont(wxFontInfo()) ctor.
|
- Fix font created using wxFont(wxFontInfo()) ctor.
|
||||||
- Fix wxFileName::GetShortcutTarget() in console applications.
|
- Fix wxFileName::GetShortcutTarget() in console applications.
|
||||||
- Fix wxFileName::MakeRelativeTo() for shortcut files (gafatoa).
|
- Fix wxFileName::MakeRelativeTo() for shortcut files (gafatoa).
|
||||||
|
- Fix height of initially empty wxBitmapComboBox (Artur Wieczorek).
|
||||||
|
|
||||||
|
|
||||||
3.0.1: (released 2014-06-15)
|
3.0.1: (released 2014-06-15)
|
||||||
|
@@ -449,7 +449,12 @@ bool wxBitmapComboBox::MSWOnMeasure(WXMEASUREITEMSTRUCT *item)
|
|||||||
LPMEASUREITEMSTRUCT lpMeasureItem = (LPMEASUREITEMSTRUCT) item;
|
LPMEASUREITEMSTRUCT lpMeasureItem = (LPMEASUREITEMSTRUCT) item;
|
||||||
int pos = lpMeasureItem->itemID;
|
int pos = lpMeasureItem->itemID;
|
||||||
|
|
||||||
lpMeasureItem->itemHeight = wxBitmapComboBoxBase::MeasureItem(pos);
|
// Measure item height if item list is not empty,
|
||||||
|
// otherwise leave default system value.
|
||||||
|
if ( pos >= 0 )
|
||||||
|
{
|
||||||
|
lpMeasureItem->itemHeight = wxBitmapComboBoxBase::MeasureItem(pos);
|
||||||
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user