Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Citronalco
zpbase
Commits
19d075bc
Commit
19d075bc
authored
Jul 24, 2022
by
Bernhard Geier
Browse files
image.php: calculate maximum image height instead of guessing it
parent
ce10ec93
Changes
1
Hide whitespace changes
Inline
Side-by-side
zpbase/image.php
View file @
19d075bc
...
...
@@ -25,7 +25,7 @@ include ('inc/header.php'); ?>
<script>
function
resizeFullImageDiv
()
{
var
vpw
=
$
(
window
).
width
();
var
vph
=
$
(
window
).
height
()
*
(.
6
0
);
var
vph
=
$
(
window
).
height
()
-
$
(
'
#top
'
).
outerHeight
(
true
)
-
parseInt
(
$
(
'
#image-full
'
).
css
(
'
margin-top
'
),
10
)
-
parseInt
(
$
(
'
#image-full
'
).
css
(
'
margin-bottom
'
),
1
0
);
if
(
vph
>
<?php
echo
getOption
(
'image_size'
);
?>
)
{
vph
=
<?php
echo
getOption
(
'image_size'
);
?>
;
}
if
(
vph
<
vpw
)
{
$
(
'
#image-full
'
).
css
({
'
height
'
:
vph
+
'
px
'
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment