Skip to content

Commit fc3d87b

Browse files
authored
Different solution for #862
1 parent cd9d3fb commit fc3d87b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: core/src/processing/awt/PSurfaceAWT.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,7 @@ public void initFrame(final PApplet sketch) {/*, int backgroundColor,
421421
//frame.setVisible(true); // re-add native resources
422422
}
423423
*/
424-
// Solves #862 - Grey/White bar on right side of sketches
425-
frame.setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));
426-
frame.pack();
424+
frame.setLayout(null);
427425

428426
// Need to pass back our new sketchWidth/Height here, because it may have
429427
// been overridden by numbers we calculated above if fullScreen and/or
@@ -1022,6 +1020,9 @@ public void componentResized(ComponentEvent e) {
10221020
//sketch.postWindowMoved(x - currentInsets.left, y - currentInsets.top);
10231021
sketch.postWindowMoved(x, y); // presumably user wants drawing area
10241022
}
1023+
}else{
1024+
// Solves #862 - Grey/White bar on right side of sketches
1025+
setFrameSize();
10251026
}
10261027
}
10271028

0 commit comments

Comments
 (0)