Bug 1348 : Drawing area too big with Firefox under Linux
Last modified: 2009-10-20 04:44




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
Mista
Assigned To:
fry

Attachment Type Created Size Actions
Screen of the minimal example with Firefox and run directly within the PDE. image/png 2009-10-17 08:17 6.04 KB

Description:   Opened: 2009-10-17 08:15
When opening an application with Firefox under Linux, the drawing area is
too big, i.e. the width and height are larger then set in the code.
Tested with Processing 1.0.7 and several versions of Firefox. Other
browsers are not affected (tested with opera and konqueror).

Here a minimal example:
void setup()
{
background(255);
size (200, 200);
}
void draw() {
rect(1,1,198,198);
}

I will add a screen shot as well.
Additional Comment #1 From Mista 2009-10-17 08:17
edit]
Screen of the minimal example with Firefox and run directly within the PDE.
Additional Comment #2 From fry 2009-10-19 10:34
what does the html look like that's producing that page?

and did you follow the reference for size() that says to only use numbers,
not variables, with the size() command?
Additional Comment #3 From Mista 2009-10-20 02:50
The code is exactly as posted in the first comment. So yes, I used numbers
and not variables to call size().
The HTML code was produced by clicking on export. Have not altered it.
Ok. I just realized that the height and width are set correctly in the HTML
file. So this is probably a bug in Firefox and not Processing.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<!-- charset must remain utf-8 to be handled properly by
Processing -->
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<title>test : Built with Processing</title>

<style type="text/css">
/* <![CDATA[ */

body {
margin: 60px 0px 0px 55px;
font-family: verdana, geneva, arial, helvetica, sans-serif;
font-size: 11px;
background-color: #ddddcc;
text-decoration: none;
font-weight: normal;
line-height: normal;
}

a { color: #3399cc; }
a:link { color: #3399cc; text-decoration: underline; }
a:visited { color: #3399cc; text-decoration: underline; }
a:active { color: #3399cc; text-decoration: underline; }
a:hover { color: #3399cc; text-decoration: underline; }

/* ]]> */
</style>

</head>
<body>

<div id="content">
<div id="test_container">

<!--[if !IE]> -->
<object classid="java:test.class"
type="application/x-java-applet"
archive="test.jar"
width="200" height="200"
standby="Loading Processing software..." >

<param name="archive" value="test.jar" />

<param name="mayscript" value="true" />
<param name="scriptable" value="true" />

<param name="image" value="loading.gif" />
<param name="boxmessage" value="Loading Processing software..." />

<param name="boxbgcolor" value="#FFFFFF" />

<param name="test_string" value="outer" />
<!--<![endif]-->

<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"

codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0_15-windows-i586.cab"
width="200" height="200"
standby="Loading Processing software..." >

<param name="code" value="test" />
<param name="archive" value="test.jar" />

<param name="mayscript" value="true" />
<param name="scriptable" value="true" />

<param name="image" value="loading.gif" />

<param name="boxmessage" value="Loading Processing software..." />
<param name="boxbgcolor" value="#FFFFFF" />

<param name="test_string" value="inner" />

<p>
<strong>
This browser does not have a Java Plug-in.
<br />
<a href="http://java.sun.com/products/plugin/downloads/index.html"
title="Download Java Plug-in">
Get the latest Java Plug-in here.
</a>

</strong>
</p>

</object>

<!--[if !IE]> -->
</object>
<!--<![endif]-->

</div>

<p>

</p>


<p>
Source code: <a href="test.pde">test</a>
</p>

<p>
Built with <a href="http://processing.org"
title="Processing.org">Processing</a>
</p>
</div>

</body>
</html>

Additional Comment #4 From fry 2009-10-20 04:44
k, closing bug.