Fixed window resize issue

The annotations were moving out of the annotated section when window was
being resized. I fixed this by using percentage values instead of
pixels.