Permalink
Browse files

viewport fixed to work both on iPhone and iPad

  • Loading branch information...
ivkosh committed Jul 8, 2011
1 parent 4681f28 commit 22bf89f4da025926b2b85f7c6cb021bc4932c3dd
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/rdbl.erl
View
@@ -184,7 +184,8 @@ simplify_page(Body0, Ctx, DefaultContentType) ->
{<<"title">>, [], TitleStr},
{<<"meta">>, [{<<"http-equiv">>, <<"content-type">>}, {<<"content">>, ContentType}], []},
% {<<"meta">>, [{<<"name">>, <<"viewport">>}, {<<"content">>, <<"width=480">>}], []},
- {<<"meta">>, [{<<"name">>, <<"viewport">>}, {<<"content">>, <<"width=320, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">>}], []},
+% {<<"meta">>, [{<<"name">>, <<"viewport">>}, {<<"content">>, <<"width=320, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">>}], []},
+ {<<"meta">>, [{<<"name">>, <<"viewport">>}, {<<"content">>, <<"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">>}], []},
{<<"style">>, [{<<"type">>, <<"text/css">>}], [<<"h1 { display: block; width: 100%; border-bottom: 1px solid #333; font-size: 1.2em; }">>],[<<"body {font-family:Helvetica,Arial,Sans-Serif;font-size:16px;margin:0px auto 0px auto;width:95%;word-wrap:break-word;}">>]}
]
},

0 comments on commit 22bf89f

Please sign in to comment.