Align to bottom on skinny window.
This commit is contained in:
parent
8131adcd41
commit
d076423b30
@ -135,9 +135,9 @@ $(document).ready(function() {
|
|||||||
$(window).bind("resize", scaleImage);
|
$(window).bind("resize", scaleImage);
|
||||||
var container = $("#photo-view");
|
var container = $("#photo-view");
|
||||||
if (image.css("width") != "100%" && container.height() * image.width() / image.height() > container.width())
|
if (image.css("width") != "100%" && container.height() * image.width() / image.height() > container.width())
|
||||||
image.css("width", "100%").css("height", "auto");
|
image.css("width", "100%").css("height", "auto").css("position", "absolute").css("bottom", 0);
|
||||||
else if (image.css("height") != "100%")
|
else if (image.css("height") != "100%")
|
||||||
image.css("height", "100%").css("width", "auto");
|
image.css("height", "100%").css("width", "auto").css("position", "").css("bottom", "");
|
||||||
}
|
}
|
||||||
function showPhoto() {
|
function showPhoto() {
|
||||||
var maxSize = 800;
|
var maxSize = 800;
|
||||||
|
Loading…
Reference in New Issue
Block a user