svnlabs / google-caja

Automatically exported from code.google.com/p/google-caja
0 stars 1 forks source link

viewport doesn't work at all #1959

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I create a responsive site in GAS using bootstrap
2. when you look into a mobile device zoom is not working and media.
3.in mobile it give me desktop layout

not working at any mobile.
where as if i host my application some where else every thing work like charm.

this is what i am using in GAS

function doGet() {
  return HtmlService.createTemplateFromFile('AppUI').evaluate().setSandboxMode(HtmlService.SandboxMode.IFRAME);
}

function include(filename) {
  return HtmlService.createHtmlOutputFromFile(filename)
      .setSandboxMode(HtmlService.SandboxMode.IFRAME)
      .getContent();
}

Original issue reported on code.google.com by asfand...@gmail.com on 16 Mar 2015 at 2:30

GoogleCodeExporter commented 9 years ago
for reference see its view in mobile 
https://script.google.com/macros/d/1MjGgDKbmqSnGezwhIwLGcw2Svcaj8VxelliDSJHnvz1B
3hON8pC8YISg/edit

Original comment by asfand...@gmail.com on 16 Mar 2015 at 3:41

GoogleCodeExporter commented 9 years ago
I assume from the title you're using a <meta name="viewport" ...> element. This 
unfortunately can't be fixed from Caja, because Caja creates a page within a 
page (a virtual iframe of sorts) and doesn't allow that page to control the 
<head> of the outer page.

However, it would be possible for the host (Apps Script, in this case) to, on 
page load, copy out the <meta> information to the outer page so that this 
works. Please file a feature request with Google Apps Script.

Original comment by kpreid@google.com on 16 Mar 2015 at 6:35

GoogleCodeExporter commented 9 years ago
this is an old post said :

 Project Member #4 ekoleda+devrel@googlers.com

Thank you for filing this issue. Since this wasn't previously supported I've 
changed the type to "Enhancement". I've raised this request with the team, but 
I don't have any information as to if or when it would be implemented.

for reference see 
https://code.google.com/p/google-apps-script-issues/issues/detail?id=4659

Original comment by asfand...@gmail.com on 17 Mar 2015 at 7:10