Makes popup take into account zoom