fix(G2DBaseControlImpl): add FIXME comment regarding AWT component size handling

This commit is contained in:
extio-de
2026-10-04 09:27:48 +02:00
parent 963a73ba1f
commit cd2a80b75a

View File

@@ -223,6 +223,9 @@ public abstract class G2DBaseControlImpl implements BaseControl {
final var visibleArea = new Area2(ImmutableCoordI2.create(this.visibleAreaX, this.visibleAreaY), ImmutableCoordI2.create(this.visibleAreaWidth, this.visibleAreaHeight));
final var intersection = SpatialUtils2.intersectAreas(controlArea, visibleArea);
if (intersection != null) {
// FIXME: Although only the intersection is drawn, the underlying AWT component (to register clicks, etc.) is still the full size of the control for most controls. Only few controls handle resizing of the AWT component at the current time.
this.mainFrameGraphics.drawImage(
this.bufferedImage,
intersection.getPosition().getX(),