-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DarkComboBox Not Drawing Correctly #35
Comments
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. 👍 |
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:
The text was updated successfully, but these errors were encountered: