This repository has been archived by the owner on Jan 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
ComboBox Design Time Spacing #211
Comments
I suspect it is the theme that is being used at design time is different from the one used at runtime, especially if it based on system. |
I have tried using various global palettes and ensured that I am using the same at design and run time but it makes no difference.
This was all fine when using a Windows 7 laptop for my development system so it seems to be something about the way that they are rendered in design time on Windows 10.
|
I get the same result if the palette used in design and run time is the same so not sure why you say that it is the palette that is causing this issue. Anyway, with the info you have established about the text box I have found another (probably easier) solution and that is to set the minimum height of the text box to 23 and that seems to fix the issue.
From: Simon Coghlan <notifications@github.com>
Sent: 25 July 2019 13:46
To: Wagnerp/Krypton-NET-5.470 <Krypton-NET-5.470@noreply.github.com>
Cc: Andrew Matthews <andrew.matthews@setek.co.uk>; Author <author@noreply.github.com>
Subject: Re: [Wagnerp/Krypton-NET-5.470] ComboBox Design Time Spacing (#211)
Left is the app running with the Global Palette set to Sparkle,
Right is the designer with the default blue theme.
[image]<https://user-images.githubusercontent.com/2418812/61875162-f141b280-aee1-11e9-9bfc-65b92a0e9847.png>
It appears that it is the Text Box that is not "Drawing as High"
[image]<https://user-images.githubusercontent.com/2418812/61875392-6c0acd80-aee2-11e9-90a5-3d3a9afc94ee.png>
So from the pictures that you are inferring, and the Theme that I am using, that it is theme problem!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#211>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AMFO36LH6PFOMEPXDHWTRFTQBGOALANCNFSM4IEXRJIA>.
|
Smurf-IV
added a commit
that referenced
this issue
Dec 14, 2019
- Investigate #211: ComboBox Design Time Spacing - Seems related to the default size being returned to the `PreferredHeight` call, which eventually goes into the Winform:Control base class to determine what shoud be returned - Therefore there is no _easy_ way to alter this functionality as it will be down to the fonts used by the Theme and Windows Font scaling in use at runtime. - Did fix the checks when using MaximumSize's for the other control.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Using VS2017 on Windows 7 the ComboBox control spacing at design time is correct but when using a Windows 10 and VS2017 the spacing around the ComboBox at design time is expanded but looks OK when the application runs. If you make the space equal at design time then at run time it is not correct.
See screenshot of how this looks at design time to get equal spacing at run time, clearly not so easy to position controls at design time due to this issue.
The text was updated successfully, but these errors were encountered: