image = new Image("ProgServer.png");
viewport.add(image, new RowData(1, -1));
I'm assuming from your discussion with sven that you've tried to set the second parameter to be the height of the image?
This is likely happening because the image doesnt load right away, so the layout can't tell how much room it should leave.
Another solution would be to use -1 as the height (meaning measure during layout), and call viewport.layout(true) again after the image has loaded (this is the same code that resizing the browser calls). This can be done through the Image method addLoadHandler.
Also, please consider making small examples in one class - while this will take more time on your part, it is much easier for us to read, and in changing the setup, you might learn more about what other things affect the issue you are having.
image = new Image("ProgServer.png");
viewport.add(image, new RowData(1, -1));
I'm assuming from your discussion with sven that you've tried to set the second parameter to be the height of the image?
This is likely happening because the image doesnt load right away, so the layout can't tell how much room it should leave.
Another solution would be to use -1 as the height (meaning measure during layout), and call viewport.layout(true) again after the image has loaded (this is the same code that resizing the browser calls). This can be done through the Image method addLoadHandler.
Also, please consider making small examples in one class - while this will take more time on your part, it is much easier for us to read, and in changing the setup, you might learn more about what other things affect the issue you are having.