res:dock:: fix display wrong tray icon.

get wrong index when there are many icons.