Fix keyboard constraint bug in landscape mode