fix for displaying menu within the visible viewport