</style>\r
</head>\r
\r
-<body style="overflow:hidden">\r
+<body style="overflow:hidden;">\r
<div class="wrapper" >\r
<!-- Content Wrapper. Contains page content -->\r
<div id='vtoy_main_div' style='width:540px; position:absolute;'>\r
var vtoy_cur_process_disk_name;\r
var vtoy_chrome_app_mode = (window.location.href.indexOf('chrome-app') >= 0) ? 1 : 0;\r
\r
+\r
function sort_language_list() {\r
var tmp;\r
for (var i = 0; i < vtoy_language_data.length; i++) {\r
}\r
\r
function ResizeWindow() {\r
- //console.log(window.screen.width + ' [x1] ' + window.screen.height); \r
+ //console.log(window.screen.availWidth + ' [x1] ' + window.screen.availHeight); \r
//console.log(vtoy_app_width + ' [x2] ' + vtoy_app_height);\r
- //console.log((window.screen.width - vtoy_app_width) / 2 + ' [x3] ' + (window.screen.height - vtoy_app_height) / 2); \r
- window.moveTo((window.screen.width - vtoy_app_width) / 2, (window.screen.height - vtoy_app_height) / 2);\r
- window.resizeTo(vtoy_app_width, vtoy_app_height);\r
+ //console.log((window.screen.availWidth - vtoy_app_width) / 2 + ' [x3] ' + (window.screen.availHeight - vtoy_app_height) / 2); \r
+ \r
+ window.onresize = function() { };\r
+ \r
+ window.resizeTo(vtoy_app_width, vtoy_app_height); \r
+ window.moveTo((window.screen.availWidth - vtoy_app_width) / 2, (window.screen.availHeight - vtoy_app_height) / 2);\r
+ \r
+ window.onresize = ResizeWindow;\r
}\r
\r
function MoveMainDivToCenter() {\r
$('#vtoy_part_align_4kb').prop("checked", true);\r
\r
if (vtoy_chrome_app_mode) {\r
- window.onresize = function() {\r
- ResizeWindow();\r
- }\r
ResizeWindow();\r
} else {\r
$('#vtoy_main_div').css("border", '2px solid #f4f4f4');\r
}\r
\r
on_select_mbr();\r
- secure_boot_check(0);\r
+ secure_boot_check(1);\r
\r
on_enable_preserve_space();\r
\r