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',
    ),
  );
CommentFileSizeAuthor
#1 add_width_directive_to-2284531-1.patch414 bytesrabellamy

Comments

rabellamy’s picture

StatusFileSize
new414 bytes
iamcarrico’s picture

Status: Active » Fixed

Committed.

Snugug’s picture

For a bit of background on this, it was initially removed as initial-scale=1.0 will produce the ideal viewport in every browser except IE10 and at the time IE only supported the @viewport directive. Since then, ppk has done research and determined that having both is needed to cover all browsers.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.