Make text layer work when rotating page