Reset infoblock position on new plane selections. Update large ident styling

This commit is contained in:
James Wilson 2017-01-31 11:07:39 -06:00
parent 0e1e5df326
commit 0511d6fd3a
2 changed files with 10 additions and 2 deletions

View file

@ -14,6 +14,7 @@ var SelectedPlane = null;
var SelectedAllPlanes = false;
var HighlightedPlane = null;
var FollowSelected = false;
var infoBoxOriginalPosition = {};
var SpecialSquawks = {
'7500' : { cssClass: 'squawk7500', markerColor: 'rgb(255, 85, 85)', text: 'Aircraft Hijacking' },
@ -1370,6 +1371,13 @@ function adjustSelectedInfoBlockPosition() {
// Get info box position and size
var infoBox = $('#selected_infoblock');
var infoBoxPosition = infoBox.position();
if (typeof infoBoxOriginalPosition.top === 'undefined') {
infoBoxOriginalPosition.top = infoBoxPosition.top;
infoBoxOriginalPosition.left = infoBoxPosition.left;
} else {
infoBox.css("left", infoBoxOriginalPosition.left);
infoBox.css("top", infoBoxOriginalPosition.top);
}
var infoBoxExtent = getExtent(infoBoxPosition.left, infoBoxPosition.top, infoBox.outerWidth(), infoBox.outerHeight());
// Get map size

View file

@ -440,11 +440,11 @@ select.error, textarea.error, input.error {
.identLarge {
font-family: Helvetica Neue;
font-size: 19px;
font-size: 24px;
line-height: 20px;
color: #002F5D;
color: rgb(0, 47, 93);
font-weight: lighter;
}
.identSmall {