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

Text widget annotations: implement comb support

This commit is contained in:
Tim van der Meij 2016-09-20 00:04:11 +02:00
parent c0e82dbc38
commit 6100ab4b18
7 changed files with 113 additions and 4 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;