fixes #10134 – dont use jquery offset directly because it uses sub pixel rendering