Merge pull request #942 from iNavFlight/dzikuvx-allow-800-600

Allow 800x600 window size
pull/886/head
Paweł Spychalski 5 years ago committed by GitHub
commit 0c06aadf3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -91,20 +91,10 @@ $(document).ready(function () {
}
});
win.setMinimumSize(1024, 800);
win.setMinimumSize(800, 600);
win.on('close', function () {
//Save window size and position
// var height = win.height;
// var width = win.width;
//
// if (height < 400) {
// height = 400
// }
// if (width < 512) {
// width = 512
// }
chrome.storage.local.set({'windowSize': {height: win.height, width: win.width, x: win.x, y: win.y}}, function () {
// Notify that we saved.
console.log('Settings saved');

Loading…
Cancel
Save