X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/cbbd57eee5980acc6879e119fe6b8913285f2af6..75cf728fa90d6f5acfdace3a174eb63ce23e20fa:/LinuxGUI/WebUI/index.html
diff --git a/LinuxGUI/WebUI/index.html b/LinuxGUI/WebUI/index.html
index 8b16692..fa90c04 100644
--- a/LinuxGUI/WebUI/index.html
+++ b/LinuxGUI/WebUI/index.html
@@ -171,7 +171,7 @@
-
+
@@ -580,11 +580,16 @@
}
function ResizeWindow() {
- //console.log(window.screen.width + ' [x1] ' + window.screen.height);
+ //console.log(window.screen.availWidth + ' [x1] ' + window.screen.availHeight);
//console.log(vtoy_app_width + ' [x2] ' + vtoy_app_height);
- //console.log((window.screen.width - vtoy_app_width) / 2 + ' [x3] ' + (window.screen.height - vtoy_app_height) / 2);
- window.moveTo((window.screen.width - vtoy_app_width) / 2, (window.screen.height - vtoy_app_height) / 2);
- window.resizeTo(vtoy_app_width, vtoy_app_height);
+ //console.log((window.screen.availWidth - vtoy_app_width) / 2 + ' [x3] ' + (window.screen.availHeight - vtoy_app_height) / 2);
+
+ window.onresize = function() { };
+
+ window.resizeTo(vtoy_app_width, vtoy_app_height);
+ window.moveTo((window.screen.availWidth - vtoy_app_width) / 2, (window.screen.availHeight - vtoy_app_height) / 2);
+
+ window.onresize = ResizeWindow;
}
function MoveMainDivToCenter() {
@@ -756,6 +761,8 @@
vtoy_in_progress = true;
progressDisableItem(vtoy_in_progress);
queryProgress(1);
+ }else if (data.result === '4kn') {
+ ventoy_display_alert('error', vtoy_cur_language.STR_4KN_UNSUPPORTED);
} else {
ventoy_display_alert('error', vtoy_cur_language.STR_INSTALL_FAILED);
}
@@ -1012,9 +1019,6 @@
$('#vtoy_part_align_4kb').prop("checked", true);
if (vtoy_chrome_app_mode) {
- window.onresize = function() {
- ResizeWindow();
- }
ResizeWindow();
} else {
$('#vtoy_main_div').css("border", '2px solid #f4f4f4');
@@ -1041,7 +1045,7 @@
}
on_select_mbr();
- secure_boot_check(0);
+ secure_boot_check(1);
on_enable_preserve_space();