You shouldn't try to exactly match the device screen size as the actual size can change between different devices, different versions and different device states.
You should instead use anchors, auto scale and designer scripts to implement a flexible layout.
The 20 pixels are related to one of the bars.