[automerger] Fix bug where widgets are inflated in the wrong orientation. am: 6bed350b75

Change-Id: I9d4bdaba96fe6afc90a48a141cd3af640b592a7a