Limit the sample to portrait to fix #12521