Closed danini-the-panini closed 11 years ago
Fixed the problem using the following dodgy hack:
pnlArena.addComponentListener(new ComponentAdapter() {
@Override
public void componentResized(ComponentEvent e)
{
super.componentResized(e);
glCanvas.setSize(pnlArena.getSize());
}
});
The fix is currently in branch athensCleanup
Fix has been merged with master.
This bug is present again since the GUI refactor.
added a check too the layout manager that only sets he component sizes if the container size has changed. default swing behaviour was causing reshape in Athens to be called almost constantly
Description:
When running a game, the Arena Panel does not match the size of its container. Rather, the panel remains at its original size of 1280x768, as observed by the following output:
The following image showcases the problem:
Note: The following line in Tokyo.java may have to be commented out to test this bug (depending on your window manager):
Affects Area:
Steps to Reproduce: