You're still using container.landscape, but you got rid of the getSize() method that defined it.