on 06-06-2017 12:06 PM
Hi Experts,
In my application there is multiple input fields through which user can edit the data .When i run the application on i phone at the bottom of the page there is one bar which was overlapped when user try to edit the fields because of the popping of the soft keyboard.
I tried something but its not working .I am calling below method on live change of input fields.
I am trying to push the view up when soft keyboard will open.
KeypadOpen : function()
{
document.addEventListener('keyup', function(event) {
if (event.code != “undefined ” || event.code != null ) {
f(sap.ui.Device.system.phone && sap.ui.Device.os.name==="iOS" && sap.ui.Device.orientation.potrait){
sap.ui.getCore().byId("oBar").addStyleClass("bottom-padding:44px");
}
});
Kindly suggest me some solutions.
Best Regards,
Abhishek
didn't face this kind of scenario but you can modify your code as below and check.
in css file:
.paddingcss{
bottom-padding:44px;
}
and,
sap.ui.getCore().byId("oBar").addStyleClass("paddingcss");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
11 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.