Optimization for tool tooltip placement