Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergej Pozdnyakov <afinogen89@gmail.com>2018-03-01 20:58:37 +0300
committerSergej Pozdnyakov <afinogen89@gmail.com>2018-03-01 20:58:37 +0300
commit87e092cbcb596d66a3bfed9d5f4dd1d00db93c8e (patch)
tree99723e2e2c5478346d054744222ba54f50fa181f /main.js
parent725e4804008a06c208f861bccde227a16bec4672 (diff)
new appearance of the interface, need testing
Diffstat (limited to 'main.js')
-rw-r--r--main.js24
1 files changed, 13 insertions, 11 deletions
diff --git a/main.js b/main.js
index 5725c8cc..a177d1ce 100644
--- a/main.js
+++ b/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;
-
- 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 () {
+ // 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');
});