3rd attempt to fix JIRA SPE-26 (Feature types on MAC)
This commit is contained in:
parent
26409cbade
commit
23b1c8f1d2
2 changed files with 3 additions and 5 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
const unsigned int wxCheckListBoxComboPopup::DefaultWidth = 200;
|
||||
const unsigned int wxCheckListBoxComboPopup::DefaultHeight = 200;
|
||||
const unsigned int wxCheckListBoxComboPopup::DefaultItemHeight = 18;
|
||||
|
||||
bool wxCheckListBoxComboPopup::Create(wxWindow* parent)
|
||||
{
|
||||
|
@ -35,11 +36,7 @@ wxSize wxCheckListBoxComboPopup::GetAdjustedSize(int minWidth, int prefHeight, i
|
|||
|
||||
unsigned int count = GetCount();
|
||||
if (count > 0)
|
||||
{
|
||||
wxRect first_rect;
|
||||
GetItemRect(0, first_rect);
|
||||
size.SetHeight((1 + count) * first_rect.GetHeight());
|
||||
}
|
||||
size.SetHeight(count * DefaultItemHeight);
|
||||
else
|
||||
size.SetHeight(DefaultHeight);
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ class wxCheckListBoxComboPopup : public wxCheckListBox, public wxComboPopup
|
|||
{
|
||||
static const unsigned int DefaultWidth;
|
||||
static const unsigned int DefaultHeight;
|
||||
static const unsigned int DefaultItemHeight;
|
||||
|
||||
wxString m_text;
|
||||
|
||||
|
|
Loading…
Reference in a new issue