GCodeViewer -> Increased size of wxCheckListBoxComboPopup

This commit is contained in:
enricoturri1966 2020-05-06 15:17:53 +02:00
parent 49f85a215b
commit c29f0a4849

View file

@ -214,7 +214,7 @@ wxSize wxCheckListBoxComboPopup::GetAdjustedSize(int minWidth, int prefHeight, i
max_width = std::max(max_width, 60 + GetTextExtent(GetString(i)).x);
}
size.SetWidth(max_width);
size.SetHeight(count * GetTextExtent(GetString(0)).y);
size.SetHeight(4 + count * (2 + GetTextExtent(GetString(0)).y));
}
else
size.SetHeight(DefaultHeight);