When a point on a curve selected is too close to the edge above or below, the marker is no longer visible.
How to detect this situation to change the alignment of AlignBottom to AlignTop and vice versa ?