[Pkg-javascript-commits] [pdf.js] 214/246: Remove `position: absolute` from text divs.
David Prévot
taffit at moszumanska.debian.org
Sun Sep 7 15:36:42 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit 9695958ebc22d9d81840fc64b39254db0ed1a27a
Author: Nicholas Nethercote <nnethercote at mozilla.com>
Date: Fri Aug 15 08:17:20 2014 -0700
Remove `position: absolute` from text divs.
It's not necessary in each text div, because it's specified in the
`.textLayer > div` rule.
---
web/text_layer_builder.js | 1 -
1 file changed, 1 deletion(-)
diff --git a/web/text_layer_builder.js b/web/text_layer_builder.js
index 03fbcf7..45de97d 100644
--- a/web/text_layer_builder.js
+++ b/web/text_layer_builder.js
@@ -150,7 +150,6 @@ var TextLayerBuilder = (function TextLayerBuilderClosure() {
left = tx[4] + (fontAscent * Math.sin(angle));
top = tx[5] - (fontAscent * Math.cos(angle));
}
- textDiv.style.position = 'absolute';
textDiv.style.left = left + 'px';
textDiv.style.top = top + 'px';
textDiv.style.fontSize = fontHeight + 'px';
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list