mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 00:05:59 +08:00
3rd attempt to fix JIRA SPE-26 (Feature types on MAC)
This commit is contained in:
parent
26409cbade
commit
23b1c8f1d2
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
const unsigned int wxCheckListBoxComboPopup::DefaultWidth = 200;
|
const unsigned int wxCheckListBoxComboPopup::DefaultWidth = 200;
|
||||||
const unsigned int wxCheckListBoxComboPopup::DefaultHeight = 200;
|
const unsigned int wxCheckListBoxComboPopup::DefaultHeight = 200;
|
||||||
|
const unsigned int wxCheckListBoxComboPopup::DefaultItemHeight = 18;
|
||||||
|
|
||||||
bool wxCheckListBoxComboPopup::Create(wxWindow* parent)
|
bool wxCheckListBoxComboPopup::Create(wxWindow* parent)
|
||||||
{
|
{
|
||||||
@ -35,11 +36,7 @@ wxSize wxCheckListBoxComboPopup::GetAdjustedSize(int minWidth, int prefHeight, i
|
|||||||
|
|
||||||
unsigned int count = GetCount();
|
unsigned int count = GetCount();
|
||||||
if (count > 0)
|
if (count > 0)
|
||||||
{
|
size.SetHeight(count * DefaultItemHeight);
|
||||||
wxRect first_rect;
|
|
||||||
GetItemRect(0, first_rect);
|
|
||||||
size.SetHeight((1 + count) * first_rect.GetHeight());
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
size.SetHeight(DefaultHeight);
|
size.SetHeight(DefaultHeight);
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@ class wxCheckListBoxComboPopup : public wxCheckListBox, public wxComboPopup
|
|||||||
{
|
{
|
||||||
static const unsigned int DefaultWidth;
|
static const unsigned int DefaultWidth;
|
||||||
static const unsigned int DefaultHeight;
|
static const unsigned int DefaultHeight;
|
||||||
|
static const unsigned int DefaultItemHeight;
|
||||||
|
|
||||||
wxString m_text;
|
wxString m_text;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user