bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Rendering issue on tablet going from landscape to portrait to landscape

Open adetwiler opened this issue 14 years ago • 7 comments

I think there is a bug with the responsive media queries. I viewed the Boootstrap site (http://twitter.github.com/bootstrap/) on my Galaxy Tablet 10.1. When I bring the site up in Landscape it looks great. When I flip to Portrait it looks great. When I flip back to Landscape the header maintains the Portrait width. It doesn't snap back to Landscape. I tested this on an iPad 2 and it does the same thing. I also tested 2 sites that were designed with Bootstrap and it does the same thing. Has anyone else noticed this issue?

Note: This only happens on a tablet. Smartphone portrait and landscape widths work great.

adetwiler avatar Aug 24 '12 04:08 adetwiler

Seems like the tablets mess up the scaling part. There's a known iOS bug for this behavior - and a fix https://github.com/scottjehl/iOS-Orientationchange-Fix . Can you please check out the demo on that page to see whether it's actually the case?

natansh avatar Aug 24 '12 06:08 natansh

check your header, initial-scale being defined is prob the culprit. this is widely documented...

thezoggy avatar Aug 24 '12 06:08 thezoggy

do you have something like

<meta name="viewport" content="width=device-width; initial-scale=1;">

if so... go remove the inital-scale=1, its a known bug https://github.com/h5bp/html5-boilerplate/issues/824

thezoggy avatar Aug 24 '12 06:08 thezoggy

@thezoggy Doesn't adding maximum-scale=1 prevent zooming?

natansh avatar Aug 24 '12 10:08 natansh

@natansh yes, http://developer.apple.com/library/safari/#documentation/appleapplications/reference/SafariHTMLRef/Articles/MetaTags.html

since @adetwiler didnt give us an example, I just put an example down to state what the bug was.. not what he should or shouldnt be using. but i'll remove that part so there isn't any confusion

thezoggy avatar Aug 24 '12 10:08 thezoggy

I should also add that this didn't do this in previous versions of Bootstrap, I will do what you suggested tonight and see if it is fixed. In the meantime here is a screenshot of what it looks like on the Galaxy Tablet.

http://tinypic.com/r/dc5zia/6

adetwiler avatar Aug 24 '12 16:08 adetwiler

Closing out until we get more info on what's causing it as I've yet to see this myself, nor many others report it.

mdo avatar Sep 01 '12 07:09 mdo