Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

ComboBox Design Time Spacing #211

Open
borismatthews opened this issue Jul 18, 2019 · 6 comments
Open

ComboBox Design Time Spacing #211

borismatthews opened this issue Jul 18, 2019 · 6 comments

Comments

@borismatthews
Copy link

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.

ComboBoxSpacing

@Smurf-IV
Copy link
Collaborator

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.

@borismatthews
Copy link
Author

borismatthews commented Jul 18, 2019 via email

@Smurf-IV
Copy link
Collaborator

Left is the app running with the Global Palette set to Sparkle,
Right is the designer with the default blue theme.
image

It appears that it is the Text Box that is not "Drawing as High"
image

So from the pictures that you are inferring, and the Theme that I am using, that it is theme problem!

@Smurf-IV
Copy link
Collaborator

KryptonManager theme to Professional -System gives this:
image

Which on Zoom gives this:
image

@Smurf-IV
Copy link
Collaborator

Smurf-IV commented Jul 25, 2019

Workaround:
Place controls into a Table and set the Row's To AutoSize, And a final Row, set to 50% to allow Runtime to take up the extra space. Now the Runtime has even spaced controls
image

@borismatthews
Copy link
Author

borismatthews commented Jul 25, 2019 via email

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.
Projects
None yet
Development

No branches or pull requests

2 participants