From ead0baf2abf76cd37fa25e55fccfceb724caf49c Mon Sep 17 00:00:00 2001 From: scottjehl Date: Mon, 3 Oct 2011 17:01:05 -0400 Subject: [PATCH] brought these orientation-based rules back for certain scenarios where they're helpful, such as when js is setting heights in iOS5. No bug fix, just a tweak. --- themes/default/jquery.mobile.core.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/themes/default/jquery.mobile.core.css b/themes/default/jquery.mobile.core.css index fc2afbaf..527ab03b 100644 --- a/themes/default/jquery.mobile.core.css +++ b/themes/default/jquery.mobile.core.css @@ -19,6 +19,14 @@ /* on ios4, setting focus on the page element causes flashing during transitions when there is an outline, so we turn off outlines */ .ui-page { outline: none; } +/*orientations from js are available */ +@media screen and (orientation: portrait){ +.ui-mobile, .ui-mobile .ui-page { min-height: 420px; } +} +@media screen and (orientation: landscape){ +.ui-mobile, .ui-mobile .ui-page { min-height: 300px; } +} + /* native overflow scrolling */ .ui-page.ui-mobile-touch-overflow, .ui-mobile-touch-overflow.ui-native-fixed .ui-content {