Loading js/ui_align.js +21 −14 Original line number Original line Diff line number Diff line Loading @@ -48,20 +48,7 @@ function align_init(){ x3dom_align_hll(); x3dom_align_hll(); }); }); var pos = $("#align_button").position(); align_position(); var width = $("#align_button").width(); $("#align_button_heading").css({ position:"absolute", top: pos.top+"px", left: -(width+2)+"px" }); $("#align_button_location").css({ position:"absolute", top: pos.top+"px", left: -(2*(width+2))+"px" }); $("#align_button_heading").on("click",function(){ $("#align_button_heading").on("click",function(){ x3dom_align_hll2(); x3dom_align_hll2(); Loading @@ -83,6 +70,26 @@ function align_init(){ } } // position extra buttons function align_position(){ var pos = $("#align_button").position(); var width = $("#align_button").width(); $("#align_button_heading").css({ position:"absolute", top: pos.top+"px", left: -(width+2)+"px" }); $("#align_button_location").css({ position:"absolute", top: pos.top+"px", left: -(2*(width+2))+"px" }); } /* /* * Check which markers need to be moved to have both 3d and map coorinates * Check which markers need to be moved to have both 3d and map coorinates * returns false if yes * returns false if yes Loading js/ui_menu.js +1 −0 Original line number Original line Diff line number Diff line Loading @@ -197,6 +197,7 @@ function controls_showhide(){ $(".edit").hide(); $(".edit").hide(); }else{ }else{ $(".edit").show(); $(".edit").show(); align_position(); } } } } Loading
js/ui_align.js +21 −14 Original line number Original line Diff line number Diff line Loading @@ -48,20 +48,7 @@ function align_init(){ x3dom_align_hll(); x3dom_align_hll(); }); }); var pos = $("#align_button").position(); align_position(); var width = $("#align_button").width(); $("#align_button_heading").css({ position:"absolute", top: pos.top+"px", left: -(width+2)+"px" }); $("#align_button_location").css({ position:"absolute", top: pos.top+"px", left: -(2*(width+2))+"px" }); $("#align_button_heading").on("click",function(){ $("#align_button_heading").on("click",function(){ x3dom_align_hll2(); x3dom_align_hll2(); Loading @@ -83,6 +70,26 @@ function align_init(){ } } // position extra buttons function align_position(){ var pos = $("#align_button").position(); var width = $("#align_button").width(); $("#align_button_heading").css({ position:"absolute", top: pos.top+"px", left: -(width+2)+"px" }); $("#align_button_location").css({ position:"absolute", top: pos.top+"px", left: -(2*(width+2))+"px" }); } /* /* * Check which markers need to be moved to have both 3d and map coorinates * Check which markers need to be moved to have both 3d and map coorinates * returns false if yes * returns false if yes Loading
js/ui_menu.js +1 −0 Original line number Original line Diff line number Diff line Loading @@ -197,6 +197,7 @@ function controls_showhide(){ $(".edit").hide(); $(".edit").hide(); }else{ }else{ $(".edit").show(); $(".edit").show(); align_position(); } } } }