-
Notifications
You must be signed in to change notification settings - Fork 65
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]: Combobox heights and Text positioning not correct when Padding is applied to the DropDown Content #1832
Comments
Hi @Smurf-IV, The normal combobox does not have a It looks like this is something that should not be there or has nothing todo with the inner combobox. @Fungusware |
Thanks for the response.
I would just like to make the Combo Box the same height as the textbox when
the padding is added. Otherwise it looks a bit strange in the UI, See below.
[image: image.png]
Regards.
…On Sat, Nov 2, 2024 at 3:46 PM giduac ***@***.***> wrote:
Hi @Smurf-IV <https://github.com/Smurf-IV>,
The normal combobox does not have a padding property. The KCombo only
receives this property through StateCommon.ComboBox.Content.
It looks like this something that should not be there or has nothing todo
with the inner combobox.
@Fungusware <https://github.com/Fungusware>
Best to to leave this at it's default value.
What is it you are trying to accomplish ?
—
Reply to this email directly, view it on GitHub
<#1832 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEYHB5H64G6VBVNBT2IP6BLZ6R7NZAVCNFSM6AAAAABQ5PCCPKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJSHEYDSOJUGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
--
John Anderson
Fungusware
http://fungusware.com
http://www.xenserver-backup.com
http://www.kojona.com
|
Yes it should, for curvature and other stylings to bring in line for Terminal style apps
Have you tried using V90 (Or alpha) |
@Smurf-IV Is there a solid chance that v90 or higher would work? I'm quite locked to .net6.0 at the moment. I could upgrade assuming the changes are substantial and beneficial. |
Just need it as a cross check, to see if the "fix" / regression has been done in V90. |
https://github.com/Fungusware/KryptonBugDemo No problem, and thanks for the fast assistance. The Toolkit is an integral part of my development life, so your attention is much appriciated. Attached is a NET6 and NET8 example of the issue I am facing. |
Hi @Fungusware, I've removed the previous post and spent some more time on this. Can you please test the class below and use this as combobox on the form.
Please let us know what you think it. using System.ComponentModel;
using System.Diagnostics;
namespace KryptonBugDemoNet8
{
public class CustomCombo : Krypton.Toolkit.KryptonComboBox
{
[DefaultValue(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public new bool IntegralHeight
{
get => base.IntegralHeight;
set => base.IntegralHeight = value;
}
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
ComboBox.Top = (this.Height / 2) - (ComboBox.Height / 2);
}
}
} |
Nice so far. |
Hi @Fungusware, A bit further. I'd please like you to clone and test this repo / branch: You can build it from inside VStudio and run TestForm. In the StartScreen's lower right corner there's a button for the test. |
2 similar comments
Hi @Fungusware, A bit further. I'd please like you to clone and test this repo / branch: You can build it from inside VStudio and run TestForm. In the StartScreen's lower right corner there's a button for the test. |
Hi @Fungusware, A bit further. I'd please like you to clone and test this repo / branch: You can build it from inside VStudio and run TestForm. In the StartScreen's lower right corner there's a button for the test. |
I'm having some issue getting the Solution to build. I'll ty and get back to you. |
Hi @Fungusware, The proposed changed has been merged and will be included in V85 next patch, V95 next patch and V100 dev branch. |
Describe the bug
Combobox heights and Text positioning not correct when Padding is applied to the DropDown Content
To Reproduce

Add a Krypton Combobox to a form and set the properties as shown
Expected behavior
Combobox should expand its height to fit the text and padding much like the Text box does.
Screenshots

Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: