Improved formatting of calibration warning message.

pull/578/head
Eric Westphal 2017-03-25 22:55:19 -04:00
rodzic ae92bae0d3
commit a23a29fdfd
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -154,7 +154,7 @@
.error .errText {
font-size: 16px;
font-family: sans-serif;
text-anchor: middle;
text-anchor: central;
alignment-baseline: middle;
stroke-width: 0px;
fill: red;

Wyświetl plik

@ -130,7 +130,7 @@ ahrsRenderer.prototype = {
},
turn_off: function(message) {
this.errText.text(message);
this.errText.text(message).center(0, 0);
var tb = this.errText.bbox();
this.errTextBg.attr({'x': tb.x, 'y': tb.y, 'width': tb.w, 'height': tb.h});
this.ai.hide();

Wyświetl plik

@ -265,7 +265,7 @@ function GPSCtrl($rootScope, $scope, $state, $http, $interval) {
$scope.IsCaging = function() {
var caging = statusCal.innerText === "Caging";
if (caging) {
ahrs.turn_off("Sensor is calibrating.\nFly level and do not move sensor.");
ahrs.turn_off("Calibrating. Fly level and do not move sensor.");
} else {
ahrs.turn_on();
}