From 9a0e0f694f4fc6f7fa1395a19df4d5d2bd594b9d Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 30 Mar 2011 08:06:14 +0000 Subject: [PATCH] Support iPad-oriented PhotoExample sizing. --- PhotoExample.cydget/index.html | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) 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; + } + }
-- 2.45.2