Fix a popup position error caused by SetInheritPosition() change