Skip to content

Commit ead0baf

Browse files
author
scottjehl
committed
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.
1 parent 1c5fd4c commit ead0baf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

themes/default/jquery.mobile.core.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@
1919
/* on ios4, setting focus on the page element causes flashing during transitions when there is an outline, so we turn off outlines */
2020
.ui-page { outline: none; }
2121

22+
/*orientations from js are available */
23+
@media screen and (orientation: portrait){
24+
.ui-mobile, .ui-mobile .ui-page { min-height: 420px; }
25+
}
26+
@media screen and (orientation: landscape){
27+
.ui-mobile, .ui-mobile .ui-page { min-height: 300px; }
28+
}
29+
2230
/* native overflow scrolling */
2331
.ui-page.ui-mobile-touch-overflow,
2432
.ui-mobile-touch-overflow.ui-native-fixed .ui-content {

0 commit comments

Comments
 (0)