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
Original issue reported on code.google.com by
matti.ka...@gmail.com
on 12 Apr 2011 at 8:59