responsive-sm not working on WP8
See original GitHub issueHi,
I know that support for WP8 will appear after the released ionic 1.0.0 but is a bug in responsive-sm
The small code in blank starter
<body ng-app="starter">
<ion-pane>
<ion-header-bar class="bar-stable">
<h1 class="title">Ionic Blank Starter</h1>
</ion-header-bar>
<ion-content>
<div class="row responsive-sm">
<div class="col">"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</div>
<div class="col">.col</div>
<div class="col">.col</div>
<div class="col">.col</div>
</div>
</ion-content>
</ion-pane>
</body>
with responsive-sm (broken) http://i60.tinypic.com/264q87t.jpg http://i57.tinypic.com/25i55vk.jpg
without responsive-sm
http://i57.tinypic.com/2h5uyrd.jpg http://i57.tinypic.com/29axnkk.jpg
Do you have any plan to fit it?
http://forum.ionicframework.com/t/wp8-responsive-sm-not-workig/4759
Issue Analytics
- State:
- Created 9 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Responsive does not work properly with Windows Phone 8
As you can see, the navigation bar does not scale properly on Windows Phone. I imagine this is an issue with pixel density....
Read more >Fix for Windows Phone 8 Device Adaptation - Low Code Life
Responsive Design: Fix for Windows Phone 8 Device Adaptation ... That would potentially fix the problem, but as Tim Kadlec observes, ...
Read more >Windows Phone 8 Responsive Issues - Litmus
Hi ! Windows Phone 8 email client doesn't support the device-width keyword for @viewport declarations. So you need to set a fixed width...
Read more >Responsive design not working on Windows phone
I am using responsive design for my site but the css media queries are not working for Windows Phone. I found a solution...
Read more >[WP8] responsive-sm not workig - ionic-v1
Hi,. I know that support for WP8 will appear after the released ionic 1.0.0 but is a bug in responsive-sm. The small code...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The @media parts in the css are the problem, it seems. Instead of flex: 1; it should be flex: 1 0 auto;
My fix is in my css file like this: @media (max-width: 567px) { .responsive-sm .col, .responsive-sm .col-10, .responsive-sm .col-20, .responsive-sm .col-25, .responsive-sm .col-33, .responsive-sm .col-34, .responsive-sm .col-50, .responsive-sm .col-66, .responsive-sm .col-67, .responsive-sm .col-75, .responsive-sm .col-80, .responsive-sm .col-90 { flex: 1 0 auto; } } @media (max-width: 767px) { .responsive-md .col, .responsive-md .col-10, .responsive-md .col-20, .responsive-md .col-25, .responsive-md .col-33, .responsive-md .col-34, .responsive-md .col-50, .responsive-md .col-66, .responsive-md .col-67, .responsive-md .col-75, .responsive-md .col-80, .responsive-md .col-90 { flex: 1 0 auto; } } @media (max-width: 1023px) { .responsive-lg .col, .responsive-lg .col-10, .responsive-lg .col-20, .responsive-lg .col-25, .responsive-lg .col-33, .responsive-lg .col-34, .responsive-lg .col-50, .responsive-lg .col-66, .responsive-lg .col-67, .responsive-lg .col-75, .responsive-lg .col-80, .responsive-lg .col-90 { flex: 1 0 auto; } }
It could break in the future, but hopefully the ionic team might just change their stylesheet.
Thx, your workaround works for Windows 10 too!