Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COI'm not creating a single webview with the same size of the app window. I'm creating a fullscreen chrome app window, with a blank html page and injecting a couple of webviews into the page through a script. Here's an example of a webview element ready to receive the parameters and to be injected into the html page: "<webview id=\""+id+"\" partition=\"p_"+id+"\" src=\"" + src + "\" style=\"position: absolute; top:" + top + "px; left:" + left + "px; width:" + width + "px; height:" + height + "px;\"></webview>" I need to remove the scroll bar on these webviews.
      singulars
    2. COCan you then calculate the exact dimensions you'd want to allocate to each of your webviews based on the screen size (or app's window size, or their parent element's size) and set them in `chrome.app.window.create` listener? If you need their parent element's size for that, you should additionally wait for `win.contentWindow.addEventListener("DOMContentLoaded")` before trying to `win.contentWindow.document.querySelector("#your-parent")`. Alternatively, just put all the querySelector- and webview- related code into a separate script and include it from `main.html` - that will work too.
      singulars
    3. COMy question wasn't exactly how to dinamically create webviews, but how to hide the scroll bar on the pages loaded inside those webviews. Anyways, I've solved the problem by injecting the necessary css to the webviews triggered by a content loaded event tied to the webview.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload