For starters, your description is a little confusing: you
have a 800 (wide) by 600 (tall) frame, and you place a
canvas inside this, with a max size of 300 x 300 (possibly
smaller on one or both axes, depending on the GIF to be loaded),
you have a mandatory scrollbar at the bottom of the canvas,
and an optional one along the right side. Then, you say
that you load a 200 x 700 image, which should mean 200 wide,
700 tall, and you say that you don't get the side scroll
bar, which is what you expected. (?? -- Did you really mean
that the image is 700 x 200? What happens when you load
an image that needs the vertical scrollbar?)
Anyway, I gather that the bottom scrollbar is spanning the
full width of the frame that contains the canvas (800 wide),
which certainly seems wrong -- although you say it actually
does scroll the image as intended when you click on its various
elements.
I don't have a direct answer
to the sizing problem, but I would point out that you could
(probably should) combine the two "-scrollbars" parameters
into one: -scrollbars => 'sow', -- sorry if
that turns out to be off the mark... Apart from that, have
you confirmed that the "$height" and "$width" variables
actually have the expected values (as opposed to, say, zero
or undef)?
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|