aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-05-17 02:29:20 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-05-17 02:29:20 -0400
commitd076423b30d625ccb3cac33381fc88456ed6b0e0 (patch)
tree971a1056b35b5b5c1c73f9679e2f475419e56b42
parentAdd nice comments to explain things and restructure order. (diff)
downloadPhotoFloat-d076423b30d625ccb3cac33381fc88456ed6b0e0.tar.xz
PhotoFloat-d076423b30d625ccb3cac33381fc88456ed6b0e0.zip
Align to bottom on skinny window.
-rw-r--r--web/js/011-display.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/011-display.js b/web/js/011-display.js
index aa1a7a1..3618d7e 100644
--- a/web/js/011-display.js
+++ b/web/js/011-display.js
@@ -135,9 +135,9 @@ $(document).ready(function() {
$(window).bind("resize", scaleImage);
var container = $("#photo-view");
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%")
- image.css("height", "100%").css("width", "auto");
+ image.css("height", "100%").css("width", "auto").css("position", "").css("bottom", "");
}
function showPhoto() {
var maxSize = 800;