Bug fix: the footer bar is not correct location when the device is rotated.