better handling uiWindow content ratio setting