Commit de000cb6 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

Reverted win OS window size offset that was needed for nw.js 0.14.7

* This is no more needed and left commented out in case we need to deal with a similar issue in the future.
parent ca0bd3a0
Pipeline #2953 failed with stage
in 405 minutes and 25 seconds
......@@ -401,8 +401,10 @@ function nw_create_window(cid, type, width, height, xpos, ypos, attr_array) {
// why does Windows have different innerWidth and innerHeight from other OSs?
// See pdgui.js' canvas_params for the explanation...
// ico@vt.edu 2020-08-21: this should only apply to patch windows
width -= 16 * pdgui.nw_os_is_windows;
height -= 8 * pdgui.nw_os_is_windows;
// 2020-10-01: this is not needed anymore since it was a bug specific to 0.14.7
// and Windows is now using 0.24.4
//width -= 16 * pdgui.nw_os_is_windows;
//height -= 8 * pdgui.nw_os_is_windows;
} else {
my_title = type;
if (type !== "search" && type !== "text") {
......
......@@ -1039,8 +1039,9 @@ function canvas_check_geometry(cid) {
// ico@vt.edu 2020-08-31:
// why does Windows have different innerWidth and innerHeight from other OSs?
// See canvas_params for the explanation...
win_w += 16 * nw_os_is_windows;
win_h += 8 * nw_os_is_windows;
// 2020-10-01: this was a bug in 0.14.7 but is no longer needed
//win_w += 16 * nw_os_is_windows;
//win_h += 8 * nw_os_is_windows;
// We're reusing win_x and win_y below, as it
// shouldn't make a difference to the bounds
......
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