You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/01/06 17:11:49 UTC

[GitHub] rewhex commented on issue #417: Keyboard Dismissal Leaves Viewport Shifted in iOS 12 / XCode 10

rewhex commented on issue #417: Keyboard Dismissal Leaves Viewport Shifted in iOS 12 / XCode 10
URL: https://github.com/apache/cordova-ios/issues/417#issuecomment-451757834
 
 
   Based on some JS comments above, this one is working for me:
   ```
   document.addEventListener('focusout', function (event) {
         const targetNode = event.target
         
         if (targetNode) {
           const tagName = targetNode.tagName.toLowerCase()
           
           if (targetNode.type != 'submit' && (tagName == 'input' || tagName == 'textarea')) {
             htmlNode.style.height = '100.1vh'
             
             setTimeout(function () {
               htmlNode.style.height = '100vh'
             }, 50)
           }
         }
       })
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org