Use more appropriate size for DrawChoice() in the render sample

The drawn combobox was so huge that it looked wrong, use a more
reasonable size for it.
This commit is contained in:
Vadim Zeitlin
2021-07-10 22:53:46 +01:00
parent f1eeeb02af
commit c95a04310d

View File

@@ -352,8 +352,10 @@ private:
y += heightListItem; y += heightListItem;
dc.DrawText("DrawChoice()", x1, y + 20); y += lineHeight;
renderer.DrawChoice(this, dc, wxRect(x2, y, 80, 50), m_flags); dc.DrawText("DrawChoice()", x1, y);
renderer.DrawChoice(this, dc,
wxRect(x2, y, width, 1.5*GetCharHeight()), m_flags);
y += 50; y += 50;
} }