Dad72 Posted October 16, 2015 Share Posted October 16, 2015 Hello, There seems to be a problem when you resize the window and the size of meshes changes their strange ways. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 17, 2015 Share Posted October 17, 2015 hey:) can you be more explicit? (PG? screen capture?) Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 17, 2015 Author Share Posted October 17, 2015 Yes: Creating a box: I then resizes the canvas, by Layout resizing. Result: Maybe it's because my canvas is in a layout. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 17, 2015 Author Share Posted October 17, 2015 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. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 17, 2015 Share Posted October 17, 2015 Sounds good then Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.