Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

electron specify minimum size

new BrowserWindow({
  width: 800, height: 600,
  minHeight: 300,
  minWidth: 300,
  frame:false
})
Comment

electron specify minimum size

const screenElectron = electron.screen;
const display = screenElectron.getPrimaryDisplay();
const dimensions = display.workAreaSize;
mainWindow = new BrowserWindow({
    width: parseInt(dimensions.width * 0.8),
    height: parseInt(dimensions.height * 0.8),
    minWidth: parseInt(dimensions.width * 0.8),
    minHeight: parseInt(dimensions.height * 0.8),
    maxWidth: dimensions.width,
    maxHeight: dimensions.height,
    icon: `${__dirname}/assets/icon.ico`
  });
Comment

PREVIOUS NEXT
Code Example
Javascript :: check if a string contains another string js 
Javascript :: delete all childs in node 
Javascript :: Clone an array using the JavaScript slice() method 
Javascript :: disable eslint next line 
Javascript :: enzyme change input value 
Javascript :: how to find out if mongoose is connected or not 
Javascript :: a quick introduction to pipe and compose javascript 
Javascript :: set data-id value jquery 
Javascript :: insta icon in next js 
Javascript :: select onchange pass option value in angular 6 
Javascript :: string pop last char js 
Javascript :: display image as big as possible react native 
Javascript :: javascript set delay 
Javascript :: Print a number with commas as thousands separators in JavaScript 
Javascript :: get scroll position jquery 
Javascript :: react native textinput lowercase 
Javascript :: get x characters from string javascript 
Javascript :: javascript json download 
Javascript :: max value in array javascript 
Javascript :: How to remove text from a string in javscript 
Javascript :: visual studio code cursor color 
Javascript :: localstorage read all key 
Javascript :: moment date add 
Javascript :: jest expect href 
Javascript :: reinitialize datatable on button click 
Javascript :: how to filter array objesct in express node js 
Javascript :: edit json via nodejs 
Javascript :: jquery get child div 
Javascript :: Use the correct Date method to extract the year (four digits) out of a date object. 
Javascript :: how to insert image by javascript 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =