Webviews not rendering on OSX
See original GitHub issueI have the following code:
<div class="flex-container">
<div class="etabs-tabgroup
<div class="etabs-tabs"></div>
<div class="etabs-buttons"></div>
</div>
<div class="etabs-views"></div>
</div>
.flex-container {
display: flex;
}
const TabGroup = require('electron-tabs');
let tabGroup = new TabGroup();
let tab = tabGroup.addTab({
title: "my@email.com",
src: "https://mail.protonmail.com/login",
visible: true
});
tab.activate();
let tab2 = tabGroup.addTab({
title: "my.second@email.com",
src: "https://mail.protonmail.com/login",
visible: true
});
When does it not render:
- With the code above.
- If I create a custom webview inside the flex-container, none of the webviews will ender.
- With both of the following but also remove all electron-tabs appended stylesheets.
When does it render:
- If I, in the developer tools, move the webview outside the etabs-views div it’ll start loading and when I move it back it displays correctly.
- If I create a custom webview inside the flex-container and remove the electron-tabs module.
- If I just create a webview outside the flex-container, then all webviews (and all the tabs) will load correctly.
electron 1.6.6 electron-tabs 0.6.0 OS: Mac OS 10.12.4
I found the following https://github.com/electron/electron/issues/8505 and thought it may be correlated?
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (11 by maintainers)
Top Results From Across the Web
Under macOS 10.12 WebView does not… - Apple Developer
I have an app for the Mac where I use WebView (not WKWebView) and many of the other classes of the WebView set...
Read more >WebView (OSX) not rendering in print panel preview
My app creates and prints a WebView. The output page is being assembled and printed properly, but I do not get a preview...
Read more >Webpage of Webview not rendered on macos (compatibiliy ...
Hi, My webview works fine on each platform (android, web, ios, windows) but not on macos. The webview stays white with no content...
Read more >WebView not working after running macdeployqt.
app, WebView does not. Both work fine when running within Qt Creator. The issue with the ArcGIS based app is only when deploying....
Read more >web/HTML content is not rendered correctly in webview tag
This points to an error in rendering the webview tag that you have to use in a Chrome app for showing web content....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Toying with this,
If I drop line 11 from index.js entirely (
visibility: hidden;
) it seems to resolve the issue for me.@avatar21 or @kontrollanten ontrollanten - what do you guys get trying this?
Just so we’re on the same page, line 7-23 for me are currently:
Edit: Just for the record, I’m very much at the ‘playing with’ stage as far as electron’s concerned, please don’t assume I know what I’m talking about 😛
I’m sorry @brrd The sample was deleted upon my yearly cleanup. I’ll see if I can get another sample back up again. @avatar21 Can you publish a sample where it’s not working? And then try with the latest update from @brrd ?