Fixes #1367 - Reset layer container position when CSS px values get too big.