Help: Dom + WebGL, Use two Lime.embed Run Dom and webgl

Hi, everyone, I hope to use DOM as the basic UI interface and webgl as the game canvas rendering, but when I adjust the webgl canvas, the rendering size is not adjusted correctly. Is that what I’ve missed?

Two Lime.embed:

        <script type="text/javascript">
		lime.embed ("ZIde", "content", 0, 0);

 	<script type="text/javascript" src="./game/HxwzHaxe.js"></script>
	<script type="text/javascript">
		lime.embed ("HxwzHaxe", window.canvas, 800, 480);

Resize webgl canvas:

public function onWindowResize():Void {
        @:privateAccess bitmapData.__resize(,;
		var stage:Stage = untyped window.uiContext;
		@:privateAccess stage.__resize();
        // trace(stage.context3D.backBufferWidth,stage.context3D.backBufferHeight);

Use DOMElement:

element = cast Browser.document.createCanvasElement();
		untyped window.canvas = element; = "uicanvas"; = "translateZ(0px)";
		var dom:DOMElement = new DOMElement(element);
		dom.width = this.width;
		dom.height = this.height;
		dom.x = this.x;
		dom.y = this.y;