ui: set minimum window size to 800x600

A smaller window makes it for a bad experience.
This commit is contained in:
Saúl Ibarra Corretgé 2017-02-09 14:20:57 +01:00 committed by hristoterezov
parent 566227acd4
commit 02229f2c2a

14
main.js
View file

@ -23,6 +23,17 @@ const indexURL = url.format({
*/ */
let jitsiMeetWindow = null; let jitsiMeetWindow = null;
/**
* Options used when creating the main Jitsi Meet window.
*/
const jitsiMeetWindowOptions = {
width: 800,
height: 600,
minWidth: 800,
minHeight: 600,
titleBarStyle: 'hidden'
};
/** /**
* Sets the APP object listeners. * Sets the APP object listeners.
*/ */
@ -45,8 +56,7 @@ function setAPPListeners () {
* Opens new window with index.html(Jitsi Meet is loaded in iframe there). * Opens new window with index.html(Jitsi Meet is loaded in iframe there).
*/ */
function createJitsiMeetWindow () { function createJitsiMeetWindow () {
jitsiMeetWindow = jitsiMeetWindow = new BrowserWindow(jitsiMeetWindowOptions);
new BrowserWindow({width: 800, height: 600, titleBarStyle: 'hidden'});
jitsiMeetWindow.loadURL(indexURL); jitsiMeetWindow.loadURL(indexURL);
jitsiMeetWindow.on("closed", () => { jitsiMeetWindow.on("closed", () => {