button.addEventListener('click', function () {
app.enableFullscreen(app.canvas, function () {
console.log('Now fullscreen');
}, function () {
console.log('Something went wrong!');
});
}, false);
to perform a fullscreen to the canvas. When i do this my UI just dissapears. Do i have to make an extra call to resize the UI to the new canvas width and height. any light in this direction will be really helpful.
@Visama the fullscreen operation needs to be initiated by the user (eg. press of a button), Im guessing you’re trying to set it fullscreen automatically on load?