Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

Commit 7554211

Browse files
Update multiple viewers
1 parent 8c31f1c commit 7554211

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

viewers/templates/GLTF WebGPU.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@
631631
function return_false() { return false; }
632632

633633
function set_gui_position() {
634-
if (menu_location_bottom === false) {
634+
if (typeof $ !== 'undefined' && menu_location_bottom === false) {
635635
let fixed_menu_bottom = ( parseInt( $('#fixed_menu').outerHeight( true ) ) + 2 ).toString() + 'px';
636636
document.getElementById('gui_position').style.marginTop = fixed_menu_bottom;
637637
} else {

viewers/templates/OBJ WebGPU.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1793,7 +1793,7 @@
17931793
function return_false() { return false; }
17941794

17951795
function set_gui_position() {
1796-
if (menu_location_bottom === false) {
1796+
if (typeof $ !== 'undefined' && menu_location_bottom === false) {
17971797
let fixed_menu_bottom = ( parseInt( $('#fixed_menu').outerHeight( true ) ) + 2 ).toString() + 'px';
17981798
document.getElementById('gui_position').style.marginTop = fixed_menu_bottom;
17991799
} else {

viewers/templates/PDB WebGPU.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@
580580
function return_false() { return false; }
581581

582582
function set_gui_position() {
583-
if (menu_location_bottom === false) {
583+
if (typeof $ !== 'undefined' && menu_location_bottom === false) {
584584
let fixed_menu_bottom = ( parseInt( $('#fixed_menu').outerHeight( true ) ) + 2 ).toString() + 'px';
585585
document.getElementById('gui_position').style.marginTop = fixed_menu_bottom;
586586
} else {

0 commit comments

Comments
 (0)