Commit b347ca49 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev
Browse files

fixed align buttons positions

parent 3ec0d640
Loading
Loading
Loading
Loading
+21 −14
Original line number Original line Diff line number Diff line
@@ -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(){


}
}


// 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
+1 −0
Original line number Original line Diff line number Diff line
@@ -197,6 +197,7 @@ function controls_showhide(){
      $(".edit").hide();
      $(".edit").hide();
    }else{
    }else{
      $(".edit").show();
      $(".edit").show();
      align_position();
    }
    }


}
}