Fixed frame calculation for view to tap in a custom keyboard

This prevents wrong frame calculation for elements to tap in a custom keyboard on landscape orientation.