Closed (fixed)
Project:
Aurora
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
11 Jun 2014 at 18:10 UTC
Updated:
26 Jun 2014 at 14:50 UTC
Jump to comment: Most recent, Most recent file
Add "width=device-width" to meta viewport tag via aurora_preprocess_html().
function aurora_preprocess_html(&$vars) {
// Viewport!
$viewport = array(
'#tag' => 'meta',
'#attributes' => array(
'name' => 'viewport',
'content' => 'width=device-width, initial-scale=1.0',
),
);
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | add_width_directive_to-2284531-1.patch | 414 bytes | rabellamy |
Comments
Comment #1
rabellamy commentedComment #2
iamcarrico commentedCommitted.
Comment #4
Snugug commentedFor a bit of background on this, it was initially removed as
initial-scale=1.0will produce the ideal viewport in every browser except IE10 and at the time IE only supported the@viewportdirective. Since then, ppk has done research and determined that having both is needed to cover all browsers.