Remove position: absolute
from text divs.
It's not necessary in each text div, because it's specified in the `.textLayer > div` rule.
This commit is contained in:
parent
0e4d9061b2
commit
9695958ebc
@ -150,7 +150,6 @@ var TextLayerBuilder = (function TextLayerBuilderClosure() {
|
|||||||
left = tx[4] + (fontAscent * Math.sin(angle));
|
left = tx[4] + (fontAscent * Math.sin(angle));
|
||||||
top = tx[5] - (fontAscent * Math.cos(angle));
|
top = tx[5] - (fontAscent * Math.cos(angle));
|
||||||
}
|
}
|
||||||
textDiv.style.position = 'absolute';
|
|
||||||
textDiv.style.left = left + 'px';
|
textDiv.style.left = left + 'px';
|
||||||
textDiv.style.top = top + 'px';
|
textDiv.style.top = top + 'px';
|
||||||
textDiv.style.fontSize = fontHeight + 'px';
|
textDiv.style.fontSize = fontHeight + 'px';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user