No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Set Initial Configuration of App window on building electron

    Framework
    2
    2
    770
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      Younghun Jung last edited by Younghun Jung

      How can I set initial configuration about electron app?

      For example,
      When I build application at electron mode, I have set initial window size on electron-main.js

      File Path: /src-electron/main-process/electron-main.js

      function createWindow () {
        /**
         * Initial window options
         */
        mainWindow = new BrowserWindow({
          width: 2000, // custom value
          height: 900, // custom value
          useContentSize: true
        })
      ...
      

      I found it on my way

      Q. 1
      Is there any problem when I change this configuration on electron-main.js?
      I cannot find quasar documentation texts about changing electron app configuration on this file.

      Q. 2
      What is meaning of ‘useContentSize’ option?

      1 Reply Last reply Reply Quote 0
      • M
        Max last edited by

        changing /src-electron/main-process/electron-main.js is fine!

        consider using mainWindow.maximize()

        1 Reply Last reply Reply Quote 0
        • First post
          Last post