Desktop: Fixes #2476: Fix window dimensions and position when the application starts (#2514)
* ElectronClient window minimum size set Hardcoded minimum width and height of 100 px. Signed-off-by: daukadolt <daulet.amirkhanov.official@gmail.com> * Set Electron window position if outside displays Set Electron window at the center of primaryDisplay if BrowserWindow is not on any displays. Signed-off-by: daukadolt <daulet.amirkhanov.official@gmail.com> * Set Electron window default size dependent on screen Set Electron window defaultWidth, defaultHeight to 80% of primary display workArea width, height, respectively. Signed-off-by: daukadolt <daulet.amirkhanov.official@gmail.com> * Hotfixing Electron defaultHeight depending on width, not height Hotfix of a typo that calculates Electron app's default height at first run using primary screen's width, not height. Signed-off-by: daukadolt <daulet.amirkhanov.official@gmail.com> * Refactoring Electron app defaultWidth/defaultHeight setup Setting defaultWidth/defaultHeight directly without extra variables. Rounding defaultWidth/defaultHeight. Signed-off-by: daukadolt <daulet.amirkhanov.official@gmail.com>
D
Daulet Amirkhanov committed
ec64bf2f0f67645b56ef1e0dc19893776f789b9e
Parent: 54dc221
Committed by GitHub <noreply@github.com>
on 2/27/2020, 6:38:08 PM