Set oldh and oldw before tray icon resize.