Browse Source

Remove `position: absolute` from text divs.

It's not necessary in each text div, because it's specified in the
`.textLayer > div` rule.
Nicholas Nethercote 11 years ago
parent
commit
9695958ebc
  1. 1
      web/text_layer_builder.js

1
web/text_layer_builder.js

@ -150,7 +150,6 @@ var TextLayerBuilder = (function TextLayerBuilderClosure() { @@ -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';

Loading…
Cancel
Save