diff options
author | Yorhel <git@yorhel.nl> | 2010-11-02 17:20:10 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-11-02 17:23:55 +0100 |
commit | 54c84adc85ed31d4ab6593a593af4dbc8a4f3305 (patch) | |
tree | 240be2fd449829c530dfd0b1a2b83fad2bb4da24 /lib/VNDBUtil.pm | |
parent | 4d42eb7cddfbf578577295c407b08beb8161af1f (diff) |
Handler::(Misc|VNPage): Added HTML width/height to screenshot thumbnails
And made sure the dimensions are truncated in VNDBUtil::imgsize().
Setting the width/height attributes makes sure that the browser can
reserve space for the image when it hasn't been loaded yet, which
prevents the overall page layout from changing while the images are
loading. (which is annoying if your connection isn't all that fast)
Diffstat (limited to 'lib/VNDBUtil.pm')
-rw-r--r-- | lib/VNDBUtil.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDBUtil.pm b/lib/VNDBUtil.pm index 3060b75b..48b5f01b 100644 --- a/lib/VNDBUtil.pm +++ b/lib/VNDBUtil.pm @@ -213,7 +213,7 @@ sub imgsize { $ow *= $sh/$oh; $oh = $sh; } - return ($ow, $oh); + return (int $ow, int $oh); } |