Jump to content

Engine resize by Layout for new version of CastorEngine


Dad72
 Share

Recommended Posts

Ok, It was what I suspected. It is my Layout system resized the canvas and thus the event was not triggered.

 
So I remove this :
this.canvas.addEventListener("resize", function () {    that.engine.resize();});

and add that:

layout.layoutW2uiDesing.on('resize', function(target, data) {	data.onComplete = function () {		that.engine.resize();	}});

and this work.

 

I used this for the Layout system: http://w2ui.com/web/demo/layout

 

It's for my new version 5.0 of castorEngine me to start from scratch with a new, more convenient interface and evolve.

 

post-5292-0-18093900-1445087235_thumb.jp

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...