Fixed corrupt layout settings

In many JVMs, you are not allowed to set the positions of objects
using floats -- it has to be ints