mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-17 05:15:20 +03:00
new appearance of the interface, need testing
This commit is contained in:
parent
725e480400
commit
87e092cbcb
7 changed files with 322 additions and 163 deletions
22
main.js
22
main.js
|
@ -59,19 +59,21 @@ $(document).ready(function () {
|
|||
}
|
||||
});
|
||||
|
||||
win.setMinimumSize(1024, 800);
|
||||
|
||||
win.on('close', function () {
|
||||
//Save window size and position
|
||||
var height = win.height;
|
||||
var width = win.width;
|
||||
// var height = win.height;
|
||||
// var width = win.width;
|
||||
//
|
||||
// if (height < 400) {
|
||||
// height = 400
|
||||
// }
|
||||
// if (width < 512) {
|
||||
// width = 512
|
||||
// }
|
||||
|
||||
if (height < 400) {
|
||||
height = 400
|
||||
}
|
||||
if (width < 512) {
|
||||
width = 512
|
||||
}
|
||||
|
||||
chrome.storage.local.set({'windowSize': {height: height, width: width, x: win.x, y: win.y}}, function () {
|
||||
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…
Add table
Add a link
Reference in a new issue