Align layer canvas to the left
So that the position is not affected by the `text-align` css rule.
This commit is contained in:
@@ -109,6 +109,7 @@ class CanvasLayerRenderer extends LayerRenderer {
|
||||
container.appendChild(canvas);
|
||||
style = canvas.style;
|
||||
style.position = 'absolute';
|
||||
style.left = '0';
|
||||
style.transformOrigin = 'top left';
|
||||
this.container = container;
|
||||
this.context = context;
|
||||
|
||||
Reference in New Issue
Block a user