Fix Popup._fix_size

Use global coord and viewport's size for locate