Black border on horizontal and vertical edges of second display
I have a new HP 27q monitor which supports a maximum resolution of 2560 x 1440. It is currently connected to my late 2013 21" iMac via a mini DP to DP cable. macOS (Mojave 10.14.6) confirms that it is providing the full resolution that the the monitor supports, but there is a 7 or 8 millimetre black border on both vertical edges and approximately the same across the top (but not the bottom)
It is really a shame as the monitor has a very thin bezel and would look great otherwise. There are no options on the on-board menu on the monitor itself to adjust the displayed image.