Commit 82c35e64 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

Cosmetic fixes to respond to changes to nw 0.46.2 behavior. Namely, fixed main...

Cosmetic fixes to respond to changes to nw 0.46.2 behavior. Namely, fixed main purr-data window starting location and size and windows now restore where they are supposed to. Also disabled debugging output.
parent 4b7b73cd
Pipeline #1991 passed with stage
in 296 minutes and 17 seconds
......@@ -399,9 +399,17 @@ function nw_create_window(cid, type, width, height, xpos, ypos, attr_array) {
var eval_string = "register_window_id(" +
JSON.stringify(cid) + ", " +
JSON.stringify(attr_array) + ");";
//pdgui.post("x=" + xpos + " y=" + ypos);
var pos;
if (xpos == 0 && ypos == 0) {
pos = "center";
} else {
pos = "null";
}
gui.Window.open(my_file, {
title: my_title,
position: "center",
// ico@vt.edu: position in 0.46.2 overrides x and y below
position: pos,
focus: true,
width: width,
// We add 23 as a kludge to account for the menubar at the top of
......
......@@ -4,6 +4,9 @@
"main": "index.html",
"chromium-args": "--proxy-server=http://127.0.0.1 --password-store=basic",
"window": {
"icon": "./purr.png"
"icon": "./purr.png",
"position": "center",
"width": 540,
"height": 440
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment