forked from External/mage
Fixed that wathcing games did not work correctly.
This commit is contained in:
parent
996f07a4ff
commit
6d4a3bac28
3 changed files with 7 additions and 7 deletions
|
|
@ -226,7 +226,7 @@ public class BattlefieldPanel extends javax.swing.JLayeredPane {
|
|||
}
|
||||
|
||||
public void sortLayout() {
|
||||
if (battlefield == null) {
|
||||
if (battlefield == null || this.getWidth() < 1) { // Can't do layout when panel is not sized yet
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue