fix(window): prevent drawing when the window is not displayed
This commit is contained in:
@@ -231,6 +231,9 @@ public class Window extends AbstractClientModule implements InitializingBean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void draw() {
|
public void draw() {
|
||||||
|
if (!this.isDisplayed()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (this.area.getDimension().getX() <= 0 || this.area.getDimension().getY() <= 0) {
|
if (this.area.getDimension().getX() <= 0 || this.area.getDimension().getY() <= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user