1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-21 15:48:06 +02:00

Merge pull request #7649 from timvandermeij/interactive-forms-tx-comb

Text widget annotations: implement comb support
This commit is contained in:
Jonas Jenwald 2016-09-22 11:36:30 +02:00 committed by GitHub
commit 6c263c1994
8 changed files with 122 additions and 27 deletions

View file

@ -77,6 +77,22 @@
border: 1px solid transparent;
}
.annotationLayer .textWidgetAnnotation input.comb {
font-family: monospace;
padding-left: 2px;
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: 115%;
}
.annotationLayer .popupWrapper {
position: absolute;
width: 20em;