From 65acbc07417c036f0c804841f5dafef1f80cefda Mon Sep 17 00:00:00 2001 From: Stef Tervelde Date: Sun, 19 Jan 2025 21:31:20 +0100 Subject: [PATCH] Update PSurfaceAWT.java --- core/src/processing/awt/PSurfaceAWT.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/processing/awt/PSurfaceAWT.java b/core/src/processing/awt/PSurfaceAWT.java index 06337ba38..4006171b2 100644 --- a/core/src/processing/awt/PSurfaceAWT.java +++ b/core/src/processing/awt/PSurfaceAWT.java @@ -422,7 +422,9 @@ public class PSurfaceAWT extends PSurfaceNone { //frame.setVisible(true); // re-add native resources } */ - frame.setLayout(null); + // Solves #862 - Grey/White bar on right side of sketches + frame.setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS)); + frame.pack(); // Need to pass back our new sketchWidth/Height here, because it may have // been overridden by numbers we calculated above if fullScreen and/or