DarkComboBox Not Drawing Correctly
Kyle-Lancaster opened this issue · comments
The DarkComboBox is not drawing correctly if it is in a TableLayoutPanel cell and "Dock" is set to "Fill" and the form is resized. It seems to only draw correctly for the region that represents the original size of the DarkComboBox.
As a work around, when the DarkComboBox is created I set the width to something larger than the form will ever be (such as int.MaxValue) this draws the DarkComboBox correctly even when the form is shrunk. Example workaround code (where "comboControl" is the DarkComboBox):
comboControl.Size = new Size(int.MaxValue, comboControl.Size.Height);
Here is a screenshot of the DarkComboBox before the form is resized:
And here it is after the form is resized:
Can you confirm which version you're using? This should have been fixed by #26 (version 2.0.1)
Moments after I previously commented I saw you just released 2.02 on NuGet. After installing that version the issue is resolved.
Thanks a lot!
Yeah, I was able to replicate your issue by swapping to NuGet 2.0.1. Looks like I botched the release and included an outdated DLL.
Sorry about that. 2.0.2 also includes another fix for dropdown items not clearing as an added bonus. 👍