Pending formula to compensate horizontal position on window resizing.