In Windows 8, using a basic Twitter Bootstrap template, if I narrow the IE 10 desktop browser to a narrow window (See below right), it will fall back to using the width styles intended for smart phones: narrow, tall window, and very readable. However, if you snap the IE 10 Metro Browser to a narrow view (see below left), it shrinks the full page view down so it is unreadable, rather than using the narrow window styles.
This is unfortunate, and likely an unintended consequence of the Metro browser design or a bug.
Assuming it is not corrected in the final release, my question is:
With help from the IEBlog post that Raymond Chen suggested in the comments above, I was able to correct the problem by adding the following CSS after the bootstrap responsive styles:
@media screen and (max-width: 320px) {
@-ms-viewport { width: 320px; }
}
This stopped the zoom behavior in IE 10 Metro (snapped sidebar mode) and correctly displayed my view optimized for narrow screens.
One final note: The minimum width that Twitter Bootstrap templates are optimized for is 480px (likely because of iPhone). Therefore, further optimization for 320 pixels may need to be done to improve the page for Metro sidebar snap viewing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With