Merge pull request #14101 from Snuffleupagus/comb-regression

[Regression] Fix comb fields scrolling when the last character is entered (PR 14049 follow-up)
This commit is contained in:
Jonas Jenwald 2021-10-06 09:44:28 +02:00 committed by GitHub
commit da8df646f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,6 +147,16 @@
padding-right: 0;
}
.annotationLayer .textWidgetAnnotation input.comb:focus {
/*
* Letter spacing is placed on the right side of each character. Hence, the
* letter spacing of the last character may be placed outside the visible
* area, causing horizontal scrolling. We avoid this by extending the width
* when the element has focus and revert this when it loses focus.
*/
width: 103%;
}
.annotationLayer .buttonWidgetAnnotation.checkBox input,
.annotationLayer .buttonWidgetAnnotation.radioButton input {
appearance: none;