prisonerjohn / processing-web

0 stars 0 forks source link

[CLOSED] Window shorter than 127 pixels high is not rendered correctly #70

Open prisonerjohn opened 10 years ago

prisonerjohn commented 10 years ago

Issue by skotchvail Wednesday Mar 13, 2013 at 17:12 GMT Originally opened as https://github.com/processing/processing-web/issues/70


A standalone Sketch on the Mac that is less than 128 pixels high will not render correctly. There is a black bar along the top.

Screen Shot 2013-03-13 at 10 01 43 AM 100x100 render with black bar

Screen Shot 2013-03-13 at 10 01 23 AM 128x128 rendered correctly

It looks like the window that the Sketch is rendered into has a minimum size, and the size of the black bar is equal to the size of the extra vertical padding given to the window. Interestingly, the error is only in the y-dimension. The X dimension renders correctly.

I don't know if this happens on any other platforms, but I see it on the Mac. This reproduces on v2.0b8, but not on v1.5.1

I have the need to develop some quite small sketches (90 x 70), and it is very helpful to be able to develop them in the stand alone program. I need it to work for both P2D and P3D.

Here is sample code that demonstrates the problem:

void setup() { size(100, 100, P2D); }

void draw() { ellipse(width/2, height/2, width, height); }

prisonerjohn commented 10 years ago

Comment by REAS Thursday Mar 14, 2013 at 03:21 GMT


Moved to processing/processing#1683