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

Fix popup of 'Target technology for cost analysis' preference #62

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

veger
Copy link
Collaborator

@veger veger commented Feb 27, 2024

The header is too long for the default width of 20f. Make the width configurable (as it is used in 3 places) and increase the width of this particular popup.

Also fixed some typos in related code.

Fixes #27

@veger veger force-pushed the fix-targettech-popup branch from 5ae2105 to 16d514d Compare February 27, 2024 12:47
@shpaass
Copy link
Owner

shpaass commented Feb 27, 2024

It would make reviewing easier if refactors were commit-separated from the change of logic. I'll add that to the contributor's guide.

@shpaass
Copy link
Owner

shpaass commented Feb 27, 2024

Regarding the change itself, it would be awesome to add the docs of at least the parts that we understand because the names of the methods rarely explain what exactly it is about. For instance, if you know what the changed popups are about, then please add a word or two about them as a /// <summary>.

@shpaass
Copy link
Owner

shpaass commented Feb 27, 2024

In particular, I'd like to see their summaries because that would show what they are about and if the width parameter is fitting there.

@veger veger force-pushed the fix-targettech-popup branch 2 times, most recently from ae5ff06 to 0b584a3 Compare February 27, 2024 19:14
@veger
Copy link
Collaborator Author

veger commented Feb 27, 2024

I split the PR into 2 commits (refactor + fix).

I tried to add a summary for the 2 modified functions, but it is quite unclear what the (full) functionality of these (GUI) functions is, as there are so many parameters and nested layers...

@veger veger force-pushed the fix-targettech-popup branch from 0b584a3 to b69e6fe Compare February 27, 2024 19:15
The header is too wide for the default width of 20f. Make the width
configurable (as it is used in more places) and increase the width of this
particular popup to fit the text/label.
@veger veger force-pushed the fix-targettech-popup branch from b69e6fe to 6c00690 Compare February 27, 2024 19:16
@shpaass shpaass merged commit d930ab7 into shpaass:master Feb 27, 2024
@veger veger deleted the fix-targettech-popup branch February 27, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Popup "Target technology for cost analysis" in Preferences isn't wide enough
2 participants