Asnivor / MedLaunch

A Windows (.NET) Front-End for the Mednafen Emulator
http://medlaunch.asnitech.co.uk/
Other
36 stars 6 forks source link

Implement max-width constraints on comboboxes #216

Open anewuser opened 6 years ago

anewuser commented 6 years ago

ConfigsSony PSXPlayStation Specific Settings → Change default region from Japan to North America.

Using a clean copy of MedLaunch v0.5.25.3 on Windows 10 64-bit.

Asnivor commented 6 years ago

Hi there,

Apologies for the delay in responding to this.

This behavior is actually by design. WPF automatically resizes combobox controls based on their content.

Is this a major issue for you?

anewuser commented 6 years ago

I see that as a bug since it breaks the design consistency. The Windows "Settings app" drop-down lists remain the same size after you change their options.

Asnivor commented 6 years ago

Ok, I see what you mean. The reason this doesnt happen in the settings dropdowns is that the combo-box content is always shorter than the initial width of the combobox. I'm gonna reopen this and will take a look at some point in the future. Its tricky because the comboboxes initially dynamically size to the layout area they are in, then the content is dynamically populated from the database. Maybe I can find a way to limit their width once they are instantiated (this is easily done if sizes are hardcoded from the start - but they are not).

I will think about it.