add method to set layout size directly in EMU