Issue with editor resolution scaling

Thanks for sharing this. I have converted it to the answer for people in a similar situation.