The problem is evident when using the Zoom to Layers button of the layers view.
Tested with PostGis Layers, not sure if the same happens with other kinds.
- Zoom out a considerable amount so the current layer occupies a small area in the map
- Add a feature that is far away from the rest of features in the layer
- Delete the just added feature
- Zoom to Layer zooms to the extent including the just deleted feature. That is, a far longer area than the actual one.
By restarting uDig the problem disappears. So it might be some kind of cached extent not being updated.