Merge pull request #5194 from nnethercote/no-absolute

Remove `position: absolute` from text divs.
This commit is contained in:
Yury Delendik 2014-08-15 10:38:23 -05:00
commit c2f4b9d301

View File

@ -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';