This applies when the app needs to resize to show the keyboard (i.e. when the text input field covers almost the whole window). Each time the text is touched, the app size will toggle between fullscreen (behind the keyboard) and the correct size.
This can be easily reproduced with the Qt Quick Controls 2 Text Editor example: switch to edit mode, and watch the toolbar on the bottom of the screen. This also happens with widget-based applications.