Now I've never had to do something like this in my life. I'm more server sided. However under your code in draw3dscreen where the resizable mode is there's this under it.
Configuration.clientHeight - 271, 5);
Now correct me if im wrong. But your height seems a biT fucked up. Backup all your shit and perhaps try removing - 271? Or cancel that section out by making it -0 as a placeholder.
Configuration.clientHeight, 5); or
Configuration.clientHeight - 0, 5); if it gives you a syntax error.
Now I've warned you im not client sided and I am begging you to back up before you try this because I won't be held responsible if it doesn't work.
Keep us updated on how it turns out.