Skip to content
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

Closed
Kyle-Lancaster opened this issue Aug 8, 2020 · 4 comments
Closed

DarkComboBox Not Drawing Correctly #35

Kyle-Lancaster opened this issue Aug 8, 2020 · 4 comments

Comments

@Kyle-Lancaster
Copy link

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:

image

And here it is after the form is resized:

image

@RobinPerris
Copy link
Owner

RobinPerris commented Aug 8, 2020

Can you confirm which version you're using? This should have been fixed by #26 (version 2.0.1)

@Kyle-Lancaster
Copy link
Author

According to the NuGet Package Manager I am using 2.0.1, but if I check the reference properties or file properties of the DLL then it is 2.0.0

Not sure what is going on. I installed it via the NuGet Package Manager.

image

image

image

@Kyle-Lancaster
Copy link
Author

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!

@RobinPerris
Copy link
Owner

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. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants