mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
Large components disappear when none of the edges is in the visible area
This commit is contained in:
Binary file not shown.
+1
-1
@@ -111,7 +111,7 @@ public abstract class AbstractComponent<T> implements IDIYComponent<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Rectangle2D rect = new Rectangle2D.Double(minX, minY, maxX - minX, maxY - minY);
|
Rectangle2D rect = new Rectangle2D.Double(minX, minY, maxX - minX, maxY - minY);
|
||||||
return clip.intersects(rect);
|
return !clip.intersects(rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void drawCenteredText(Graphics2D g2d, String text, int x, int y,
|
protected void drawCenteredText(Graphics2D g2d, String text, int x, int y,
|
||||||
|
|||||||
Reference in New Issue
Block a user