/** * Resizes the {@link CSS3DRenderer} viewport * to (width, height), and also sets the viewport to fit that size, * starting in (0, 0). * * @param width the new width of the {@link CSS3DRenderer}. * @param height the new height of the {@link CSS3DRenderer}. */ private void setSize(int width, int height) { Log.debug("CSS3DRenderingPanel: set size: W=" + width + ", H=" + height); getCanvas().setSize(width+"px", height+"px"); getRenderer().setSize(width, height); }