[ 
https://issues.apache.org/jira/browse/CB-12811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16013470#comment-16013470
 ] 

Ashraf Yussouff edited comment on CB-12811 at 5/17/17 3:44 AM:
---------------------------------------------------------------

[~kerrishotts] - Thanks again - your feedback is extremely helpful. I used 
flexbox (your suggestion no. 2) and it worked perfectly so that is what I am 
going with. I am attaching my flexbox based solution here. That document is 
called "flexboxPageForIAB.html" (it is based on 
https://codepen.io/anthonyLukes/pen/DLBeE).

To test, please place it in the www directory, and also edit "index.html" to 
point to this page in the call for the InAppBrowser instead of the previous 
page ("pageForIAB.html").

Thanks also about mentioning the inertial scrolling. I'll make sure I take care 
of it.

Lastly, let me know if I have to take any further action on this issue (e.g. 
closing it). I'm not sure how your workflow is set up.


was (Author: tabalchi):
[~kerrishotts] - Thanks again - your feedback is extremely helpful. I used 
flexbox (your suggestion no. 2) and it worked perfectly so that is what I am 
going with. I am attaching my flexbox based solution here. That document is 
called "flexboxPageForIAB.html" . 

To test, please place it in the www directory, and also edit "index.html" to 
point to this page in the call for the InAppBrowser instead of the previous 
page ("pageForIAB.html").

Thanks also about mentioning the inertial scrolling. I'll make sure I take care 
of it.

Lastly, let me know if I have to take any further action on this issue (e.g. 
closing it). I'm not sure how your workflow is set up.

> Plugin Inappbrowser on iOS - When keyboard appears, fixed divs are fixed to 
> HTML page but not viewport
> ------------------------------------------------------------------------------------------------------
>
>                 Key: CB-12811
>                 URL: https://issues.apache.org/jira/browse/CB-12811
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-inappbrowser
>    Affects Versions: cordova@7.0.0
>            Reporter: Ashraf Yussouff
>         Attachments: flexboxPageForIAB.html, index.html, pageForIAB.html, 
> Screen Shot 2017-05-12 at 7.55.54 PM.png, Screen Shot 2017-05-12 at 7.56.21 
> PM.png, Screen Shot 2017-05-12 at 7.56.36 PM.png
>
>
> I am displaying an HTML form in the InAppBrowser. The page has a header fixed 
> to the top and a footer fixed to the bottom using CSS (e.g. {position: fixed; 
> top: 0px;}).
> When simply scrolling the page, the header and footer remain in place while 
> the rest of the page moves. 
> However, when an input receives focus and the iOS keyboard appears, the 
> header and footer positions are only fixed with respect to the HTML page at 
> the time the input received focus, but they are no longer fixed with respect 
> to the viewport. As a result, if the page is scrolled up and down while the 
> keyboard is open, the header and footer start moving along with the page.
> This behavior is not observed in the Safari mobile browser on the same 
> device. On Safari, the header and footer remain in place while the rest of 
> the page is scrollable when an input is clicked and the iOS keyboard appears 
> below the browser.
> I will try to attach images if JIRA allows it after the issue has been 
> created.
> NOTE: iOS is the only platform that I am working with, so I don't know if 
> this issue occurs in other platforms as well. I am using plugin version 1.7.0 
> and the Cordova versions I have seen this with are 6.4.0 and above.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to