Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/notes/bugfix-22256.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Fix mobileSetKeyboardDisplay panning incorrect amount on second and subsequent keyboard activation
4 changes: 2 additions & 2 deletions engine/src/mbliphoneapp.mm
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,8 @@ - (void)keyboardWillActivate:(NSNotification *)notification
t_info = [notification userInfo];

CGSize t_size;
t_size = [[t_info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size;

t_size = [[t_info objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue].size;
// MM-2012-02-26: [[ Bug 10677 ]] Keyboard dimensions do not take into account orientation.
// We want height here, so assume the keyboard is always wider than it is taller and take the min of the two.
CGFloat t_height = MCMin(t_size . height, t_size . width);
Expand Down