Commit 4e10edcf authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

Fix typo that caused a bug with patch window placement

parent fa0f5ed4
......@@ -986,7 +986,7 @@ function gui_canvas_new(cid, width, height, geometry, editmode, name, dir, dirty
geometry = geometry.slice(1); // remove the leading "+"
geometry = geometry.split("+"); // x/y screen offset (in pixels)
// Keep patches on the visible screen
var xpos = Math.min(Number(geometry[0]), window.screen.height - width);
var xpos = Math.min(Number(geometry[0]), window.screen.width - width);
var ypos = Math.min(Number(geometry[1]), window.screen.height - height);
xpos = Math.max(xpos, 0);
ypos = Math.max(ypos, 0);
......
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