Fix calculation of device port handle locations.
Implement device port handle focus.