[JENKINS-64712] Fix unexpected scrolling of config UI #1051
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
JENKINS-64712 - Fix unexpected scrolling of nested checkbox
The nesting of one checkbox beneath another checkbox appears to be purely a presentation convenience to only show the
useExistingAccountWithSameEmail
if theuseExistingAccountWithSameEmail
checkbox was enabled. Since the GitTool data model has theuseExistingAccountWithSameEmail
and theuseExistingAccountWithSameEmail
fields at the same level, this simplifies the user experience by displaying them both at the time.Tested interactively with Jenkins 2.263.4, Jenkins 2.277.1-rc, and Jenkins 2.281. Behaves as expected in all cases.
Checklist
Types of changes
Further comments
Existing values are loaded as expected on startup.
Values are persisted to the GitTool.xml configuration file when the configuration is applied or saved.
Hints in other communities suggest that the unexpected scrolling is caused by specific CSS markup, but I can't find that specific markup in my search of the generated page. Rather than fight with CSS markup, it is easier to move the nested checkbox to the top level.
Would love to have review and verification by @MRamonLeon