mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-27 16:28:40 +00:00
Don't offset the view if there's no text input rect
Otherwise this will shift the entire view upwards, which probably isn't what you want.
This commit is contained in:
parent
c8a04eec06
commit
51628034d9
1 changed files with 1 additions and 1 deletions
|
|
@ -609,7 +609,7 @@ static void SDLCALL SDL_HideHomeIndicatorHintChanged(void *userdata, const char
|
|||
CGRect frame = UIKit_ComputeViewFrame(window, data.uiwindow.screen);
|
||||
#endif
|
||||
|
||||
if (self.keyboardHeight) {
|
||||
if (self.keyboardHeight && self.textInputRect.h) {
|
||||
int rectbottom = (int)(self.textInputRect.y + self.textInputRect.h);
|
||||
int keybottom = (int)(self.view.bounds.size.height - self.keyboardHeight);
|
||||
if (keybottom < rectbottom) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue