alistairmgreen / jsigc

A browser-based viewer for gliding flight recorder logs.
https://alistairmgreen.github.io/jsigc/
MIT License
25 stars 11 forks source link

Cross-hair does not adjust correctly as window is resized #14

Closed alistairmgreen closed 8 years ago

alistairmgreen commented 9 years ago

The barogram displays a red cross-hair to show the altitude at the currently selected time. Initially this will be equal to the airfield elevation (usually close to zero).

If the width of the browser window is reduced sufficiently, the horizontal line of the cross-hair slides downwards and appears underneath the x axis:

crosshair-below-graph

The narrower the window becomes, the further the cross-hair moves.

As soon as the barogram is replotted (when the time slider is moved or the units are changed), the cursor goes back to the correct position.

alistairmgreen commented 8 years ago

Further to the above, in all browsers, the crosshair remains static relative to the page as the graph is resized, which means that it no longer points to the correct place on the graph.