The shape function does not place its childs at the proper location.
Running the example sketch I get this image:

Modifying the screen size I get:

The same result I see using APDE.
Edit: Using on Samsung tablet 9.6 E running KiKat 4.4 and also on Samsung phone S4 running Lollipop. 5.1