You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running Electron + react set up according to your guide here. I added a simple app bar from material and created a react class from the component.
However the components in the window launched by electron.exe are not responsive. If I go to localhost:3000 then I find that the buttons are responsive and trigger events, everything works!
Any tips to help me investigate?
The text was updated successfully, but these errors were encountered:
Interesting. I've removed material and tried the same experiment.
in the component constructor this.toggleWindowVisibility = this.toggleWindowVisibility.bind(this)
the function
toggleWindowVisibility(){
if (document.visibilityState === "visible")
{
log.info("Clicked minimize!")
window.dispatchEvent(new Event('minimize'))
return
}
log.info("Window is not visible")
window.moveTo(0,0);
}
In the render function <button onClick={this.toggleWindowVisibility}}> Push me </button>
Running Electron + react set up according to your guide here. I added a simple app bar from material and created a react class from the component.
However the components in the window launched by electron.exe are not responsive. If I go to localhost:3000 then I find that the buttons are responsive and trigger events, everything works!
Any tips to help me investigate?
The text was updated successfully, but these errors were encountered: