away3d / away3d-core-openfl

Away3D engine for OpenFL
166 stars 41 forks source link

View3D resize on html5 doesn't work properly #53

Closed xastor closed 8 years ago

xastor commented 9 years ago

When you resize a View3D component by changing its width and height properties, strange things happen. The renderer seems to track the change, but the view keeps its original size. I tracked this down to the html canvas element not receiving a new size.

I validated this by giving the Context3D class private access to the DisplayObject class and explicitly updating DisplayObject.__canvas.width and height on every resize. With this change, resizing the View3D object works as expected.

Since the OpenGLView doesn't resize properly, I suppose this is an issue for OpenFL?

Greg209 commented 9 years ago

I already have a fix for this locally but need to finish off some other edits/tests before issuing a PR to OpenFL. I'll leave this open until the fix is in. thanks

Greg209 commented 8 years ago

This should be fixed with the latest OpenFL (released version) and Away3D (git)