handle stage resize and lost context
change defalt ui scale