From: Jay Freeman (saurik) Date: Wed, 30 Mar 2011 08:06:14 +0000 (+0000) Subject: Support iPad-oriented PhotoExample sizing. X-Git-Tag: v0.9.4000~3 X-Git-Url: https://git.saurik.com/cydget.git/commitdiff_plain/9a0e0f694f4fc6f7fa1395a19df4d5d2bd594b9d?ds=inline Support iPad-oriented PhotoExample sizing. --- diff --git a/PhotoExample.cydget/index.html b/PhotoExample.cydget/index.html index a99a0bb..fe772b5 100644 --- a/PhotoExample.cydget/index.html +++ b/PhotoExample.cydget/index.html @@ -117,10 +117,27 @@ #content img { margin: auto; - max-height: 268px; - max-width: 320px; + max-width: 100%; vertical-align:middle; } + + @media only screen and (min-device-width: 320px) and (max-device-width: 480px) { + #content img { + max-height: 268px; + } + } + + @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) { + #content img { + max-height: 556px; + } + } + + @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) { + #content img { + max-height: 769px; + } + }