code: public void setPixelSize(int width, int height) {
  		layerHtmlContainer.setPixelSize(width, height);
  		drawingArea.setWidth(width);
  		drawingArea.setHeight(height);
  		canvasPanel.setPixelSize(width, height);
  		for (CanvasContainer container : worldCanvases) {
  			container.setPixelSize(width, height);
  		}
  		super.setPixelSize(width, height);
  	}
docs: ------------------------------------------------------------------------