positioning icon popup so it fits within the frame