Commit 5a554927 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

Merge branch '0.46.2-fix-1'

parents d4d3d9fc 82c35e64
......@@ -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