Skip to content

Commit 65acbc0

Browse files
authored
Update PSurfaceAWT.java
1 parent 628b69d commit 65acbc0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/processing/awt/PSurfaceAWT.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,9 @@ public void initFrame(final PApplet sketch) {/*, int backgroundColor,
422422
//frame.setVisible(true); // re-add native resources
423423
}
424424
*/
425-
frame.setLayout(null);
425+
// Solves #862 - Grey/White bar on right side of sketches
426+
frame.setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));
427+
frame.pack();
426428

427429
// Need to pass back our new sketchWidth/Height here, because it may have
428430
// been overridden by numbers we calculated above if fullScreen and/or

0 commit comments

Comments
 (0)