Discussion Forums  >  WebViews and HTML for Mobile

Replies: 1    Views: 300

mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
03/09/14 04:59 PM (10 years ago)

How to prevent font size change with device rotation?

I apologize if this has been asked already, can't find an answer. As the way my iOS app is now the font size is perfect in portrait but when the device is rotated to landscape the font size increases so that the amount of letters per line is the same as in portrait. Is there a way to prevent this? I'm using the html pro plugin. Thanks!
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
03/09/14 06:55 PM (10 years ago)
Perhaps use two different CSS Style sheets combined with rotation detection. Lots of variants on that ... I am assuming you are displaying HTML.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.