When the device is in portrait upside down the toolbar appears at the bottom. This fix set the origin to the 0,0 point