Handle tooltip/toolbar x coordinate with screen bound.