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

[Bug]: KryptonComboBox / KryptonNumericUpDown / KryptonDomainUpDown Anchor Sizing no as expected when anchored Top & Bottom #688

Closed
sdreb3421 opened this issue Apr 5, 2022 · 4 comments
Labels
bug Something isn't working fixed This issue has been fixed.

Comments

@sdreb3421
Copy link

When a KryptonComboBox is anchored on all four sides and its parent container size is reduced so that the combo box width is reduced below its minimum width, the combo box will be larger once the parent is re-expanded. This only occurs if adjusting the parent container height while the combo box is reduced below its minimum width.

This is an issue on the current and previous releases of Krypton. To reproduce, add a standard winforms combo box and a krypton combo box to a form. Anchor on all four sides and adjust the form size with the mouse ensuring to shrink the combo boxes until they cannot be seen. Only the krypton combo box size will be larger than the original size.

@sdreb3421 sdreb3421 added the bug Something isn't working label Apr 5, 2022
@giduac
Copy link

giduac commented Apr 27, 2022

Hi,

I've been trying this.
The right side of the Kcombo becomes anchored beyond the right border of it's parent control.
It also happens in the VS-Designer.

There are two ways this occurs.

  1. The way described by sdreb3421. After it occurs the width can be reset. And the error reproduced.
Rqlq9ilLCT.mp4
  1. Also occurs on window minimize/restore
M3mLhEO4Kr.mp4

@Smurf-IV Smurf-IV self-assigned this Jun 9, 2022
@Smurf-IV Smurf-IV added the under investigation This bug/issue is currently under investigation. label Jun 9, 2022
@Smurf-IV
Copy link
Member

Workaround:

  • It does not make sense to anchor height (Top & bottom) of a combo / Numeric / Domain / Single line edit box.

Yes this is a bug, not sure it's a must fix ?
I'll keep looking to see if there is something obvious !

@Smurf-IV
Copy link
Member

NumericEtc

Above shows that the fix for the KComboBox, also needs to be applied to the Numeric and Domain controls. Edit box is okay.

@Smurf-IV
Copy link
Member

Fixed.. PR coming soon....
NumericEtcFixed

@Smurf-IV Smurf-IV changed the title [Bug]: KryptonComboBox Anchor Sizing [Bug]: KryptonComboBox / KryptonNumericUpDown / KryptonDomainUpDown Anchor Sizing no as expected when anchored Top & Bottom Jun 11, 2022
Smurf-IV added a commit that referenced this issue Jun 11, 2022
…tricted controls

- Also put back in changes for #724

#688
@Smurf-IV Smurf-IV removed their assignment Jun 11, 2022
@Smurf-IV Smurf-IV added fixed This issue has been fixed. and removed under investigation This bug/issue is currently under investigation. labels Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed This issue has been fixed.
Projects
None yet
Development

No branches or pull requests

3 participants