Datebox and SimpleDialog2 disappears in Landscape mode on Android :-(
Happy New Year to all of you!
I've been using the SimpleDialgo2 and Datebox for the past few days while developing an app for Tablet and iPad, recently I started porting the app for small screen devices. These 2 components works smoothly in portrait mode, but I don't know, why these two components disappears in landscape mode on android device.
If possible it's possible for anyone, please have a look at the code given below and let me know, if I'm making mistake(s).
$("<idv>").simpledialog2({
mode: 'button',
headerText: headerText,
headerClose: false,
useDialogForceTrue: true,
buttonPrompt: message,
buttons : {
'OK': {
click: function () {
$('#buttonoutput').text('Ok');
//console.log("Ok clicked!: "+okCallback);
if(okCallback){
okCallback();
}
},
theme: "c"
},
'Cancel': {
click: function () {
$('#buttonoutput').text('Cancel');
//console.log("Cancel clicked! : "+cancelCallback);
if(cancelCallback){
cancelCallback();
}
},
icon: "delete",
theme: "c"
}
}
});
Thanks, Mahendra
I got the fix, but the solution was for different bug and it worked for mine issues as well. https://github.com/robdiciuccio/jquery-mobile-simpledialog/commit/9a26b8b0d7645b87db23950dde5b213fb70be143