Commit b347ca49 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fixed align buttons positions

parent 3ec0d640
...@@ -48,20 +48,7 @@ function align_init(){ ...@@ -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();
...@@ -83,6 +70,26 @@ function align_init(){ ...@@ -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
......
...@@ -197,6 +197,7 @@ function controls_showhide(){ ...@@ -197,6 +197,7 @@ function controls_showhide(){
$(".edit").hide(); $(".edit").hide();
}else{ }else{
$(".edit").show(); $(".edit").show();
align_position();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment