This is a problem that other people have also reported, here on the atomβs discussion page under the heading βView Web Browserβ:
https://discuss.atom.io/t/webview-autosize/16915/6
It seems that "autosize" does not say the last word about the resulting window size; The css options can interfere and modify the result.
For this problem, some css workarounds are suggested that may help:
-Remove html and body width up to 100%:
html, body { width: 100%; height: 100%; margin: 0; padding: 0; }
-set relative view units in webview css:
webview { display: block; border: none; height: 80vh; width: 95vw;
}
source share