Forum archive 2000-2006

Ben Pollina - Pop-up graph window

Ben Pollina - Pop-up graph window

by Arnold Pizer -
Number of replies: 0
inactiveTopicPop-up graph window topic started 11/14/2004; 5:07:02 PM
last post 11/17/2004; 10:00:44 AM
userBen Pollina - Pop-up graph window  blueArrow
11/14/2004; 5:07:02 PM (reads: 1105, responses: 2)
When you click on a WeBWorK graph, a copy of the graph appears in a separate browser window. Is there any way to control the size of this window and/or the size of the image that appears in it?

Ben Pollina

<| Post or View Comments |>


userJohn Jones - Re: Pop-up graph window  blueArrow
11/14/2004; 7:07:47 PM (reads: 1315, responses: 0)
For static graphics, webwork simply gives you the graphic. For on the fly graphics in webwork 2, the size of the graph (in pixels) is set in global.conf as
$pg{specialPGEnvironmentVars}{onTheFlyImageSize}      = 400

Then, if the browser is set to allow javascript, it is used to try to set the size of the pop-up to be slightly larger than the graph. Otherwise, you just get a new full-sized window.

John

<| Post or View Comments |>


userBen Pollina - Re: Pop-up graph window  blueArrow
11/17/2004; 10:00:44 AM (reads: 1331, responses: 0)
John,

Thank you. I increased this constant, and it had exactly the effect I was looking for.

Ben

<| Post or View Comments |>