wiedehopf / tar1090

Provides an improved webinterface for use with ADS-B decoders readsb / dump1090-fa
Other
1.22k stars 224 forks source link

improve infoBox positioning #214

Closed dseven closed 1 year ago

dseven commented 1 year ago

Prior calculation of the top-left corner location of the infoBox could result in negative values, placing the element (partially) out of view. Also, positioning was inconsistent, depending on whether left/right or above/below the plane marker.

With this change, the size of the infoBox is taken info account when calculating the relative position, and it ensured that the values would not be less than zero.