JuanCarlosAragon / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

IllegalArgumentException when resizing JWindow containing jme canvas #328

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add jme3 canvas into JWindow
2. Resize the window with mouse to very small
3. IllegalArgumentException is thrown because of canvas height=-1

What is the expected output? What do you see instead?

java.lang.IllegalArgumentException
    at com.jme3.bounding.BoundingBox.setYExtent(BoundingBox.java:902)
    at com.jme3.renderer.Camera.setGuiBounding(Camera.java:1086)
    at com.jme3.renderer.Camera.onViewPortChange(Camera.java:1073)
    at com.jme3.renderer.Camera.resize(Camera.java:389)

What version of the product are you using? On what operating system?
Windows7

Please provide any additional information below.

I override the reshape in my Application to avoid this.

@Override
public void reshape(int w, int h) {
    super.reshape(w < 0 ? 0 : w, h < 0 ? 0 : h);
}

Original issue reported on code.google.com by matti.ka...@gmail.com on 12 Apr 2011 at 8:59

GoogleCodeExporter commented 8 years ago
Thanks but please use the forums, this bug list is only for ourselves.

Original comment by normen667 on 13 Apr 2011 at 2:38

GoogleCodeExporter commented 8 years ago

Original comment by ShadowIs...@gmail.com on 28 Apr 2011 at 6:49