Commit a8c3b00b authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov
parent 0d2504ad
......@@ -4439,15 +4439,28 @@ function CDrawingDocument(drawingObjects)
if (!_div_elem)
return;
var bIsAppend = true;
if (_div_elem.childNodes && _div_elem.childNodes.length == 1)
{
this.GuiCanvasFillTexture = _div_elem.childNodes[0];
bIsAppend = false;
}
else
{
this.GuiCanvasFillTexture = document.createElement('canvas');
}
this.GuiCanvasFillTexture.width = parseInt(_div_elem.style.width);
this.GuiCanvasFillTexture.height = parseInt(_div_elem.style.height);
this.LastDrawingUrl = "";
this.GuiCanvasFillTextureCtx = this.GuiCanvasFillTexture.getContext('2d');
if (bIsAppend)
{
_div_elem.appendChild(this.GuiCanvasFillTexture);
}
}
this.InitGuiCanvasTextProps = function(div_id)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment