Fixed popup rendering issue with resized windows.